Character.IsJavaIdentifierPart Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
IsJavaIdentifierPart(Int32) |
Determines if the character (Unicode code point) may be part of a Java identifier as other than the first character. |
IsJavaIdentifierPart(Char) |
Determines if the specified character may be part of a Java identifier as other than the first character. |
IsJavaIdentifierPart(Int32)
Determines if the character (Unicode code point) may be part of a Java identifier as other than the first character.
[Android.Runtime.Register("isJavaIdentifierPart", "(I)Z", "")]
public static bool IsJavaIdentifierPart (int codePoint);
[<Android.Runtime.Register("isJavaIdentifierPart", "(I)Z", "")>]
static member IsJavaIdentifierPart : int -> bool
Parameters
- codePoint
- Int32
the character (Unicode code point) to be tested.
Returns
true
if the character may be part of a
Java identifier; false
otherwise.
- Attributes
Remarks
Determines if the character (Unicode code point) may be part of a Java identifier as other than the first character.
A character may be part of a Java identifier if any of the following conditions are true: <ul> <li> it is a letter <li> it is a currency symbol (such as '$'
) <li> it is a connecting punctuation character (such as '_'
) <li> it is a digit <li> it is a numeric letter (such as a Roman numeral character) <li> it is a combining mark <li> it is a non-spacing mark <li> #isIdentifierIgnorable(int) isIdentifierIgnorable(codePoint)
returns true
for the code point </ul>
Added in 1.5.
Java documentation for java.lang.Character.isJavaIdentifierPart(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
IsJavaIdentifierPart(Char)
Determines if the specified character may be part of a Java identifier as other than the first character.
[Android.Runtime.Register("isJavaIdentifierPart", "(C)Z", "")]
public static bool IsJavaIdentifierPart (char ch);
[<Android.Runtime.Register("isJavaIdentifierPart", "(C)Z", "")>]
static member IsJavaIdentifierPart : char -> bool
Parameters
- ch
- Char
the character to be tested.
Returns
true
if the character may be part of a
Java identifier; false
otherwise.
- Attributes
Remarks
Determines if the specified character may be part of a Java identifier as other than the first character.
A character may be part of a Java identifier if any of the following conditions are true: <ul> <li> it is a letter <li> it is a currency symbol (such as '$'
) <li> it is a connecting punctuation character (such as '_'
) <li> it is a digit <li> it is a numeric letter (such as a Roman numeral character) <li> it is a combining mark <li> it is a non-spacing mark <li> isIdentifierIgnorable
returns true
for the character </ul>
<b>Note:</b> This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the #isJavaIdentifierPart(int)
method.
Added in 1.1.
Java documentation for java.lang.Character.isJavaIdentifierPart(char)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.