套件 | spark.validators.supportClasses |
類別 | public class GlobalizationUtils |
繼承 | GlobalizationUtils Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10.1, AIR 2.5 |
This class contains the utility routines needed for all Validators. Examples of typical routines are checking for unicode white space, trimming all spaces in a string at the beginning and end.
公用方法
方法 | 定義自 | ||
---|---|---|---|
指出物件是否有已定義的指定屬性。 | Object | ||
[靜態]
Return true if a codepoint is a numeric digit. | GlobalizationUtils | ||
[靜態]
Return true if a codepoint is a leading surrogate. | GlobalizationUtils | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
[靜態]
Return true if a codepoint is a trailing surrogate. | GlobalizationUtils | ||
[靜態]
Return true if a codepoint is a white space character. | GlobalizationUtils | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
[靜態]
Convert a surrogate pair to UTF32. | GlobalizationUtils | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
[靜態]
Removes leading and trailing white space characters. | GlobalizationUtils | ||
會傳回指定之物件的基本值。 | Object |
方法詳細資訊
isDigit | () | 方法 |
public static function isDigit(ccode:uint):Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10.1, AIR 2.5 |
Return true
if a codepoint is a numeric digit.
Supported digits are listed in
flash.globalization.NationalDigitsType
.
參數
ccode:uint — input codepoint
|
Boolean — true if a codepoint is a numeric digit.
|
isLeadingSurrogate | () | 方法 |
isTrailingSurrogate | () | 方法 |
isWhiteSpace | () | 方法 |
public static function isWhiteSpace(ccode:uint):Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10.1, AIR 2.5 |
Return true
if a codepoint is a white space character.
Supports all unicode white space characters.
The unicode supported white spaces are:
ASCII_SPACE (0x20) NO_BREAK_SPACE (0xA0) UNICODE_OGHAM_SPACE_MARK (0x1680) Unicode spaces 0x2000 - 0x200B UNICODE_NARROW_NOBREAK_SPACE (0x202F) UNICODE_MEDIUM_MATHEMATICAL_SPACE (0x205F) UNICODE_IDEOGRAPHIC_SPACE (0x3000) UNICODE_ZEROWIDTH_NOBREAK_SPACE (0xFEFF)
參數
ccode:uint — The input codepoint.
|
Boolean — true if a codepoint is a white space character,
and false if not.
|
surrogateToUTF32 | () | 方法 |
trim | () | 方法 |
Tue Jun 12 2018, 03:47 PM Z