| Paket | spark.validators.supportClasses |
| Klass | public class GlobalizationUtils |
| Arv | GlobalizationUtils Object |
| Språkversion: | ActionScript 3.0 |
| Produktversion: | Flex 4.5 |
| Körningsmiljöversioner: | 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.
| Metod | Definieras med | ||
|---|---|---|---|
![]() |
Anger om det finns en egenskap angiven för ett objekt. | Object | |
[statisk]
Return true if a codepoint is a numeric digit. | GlobalizationUtils | ||
[statisk]
Return true if a codepoint is a leading surrogate. | GlobalizationUtils | ||
![]() |
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | |
[statisk]
Return true if a codepoint is a trailing surrogate. | GlobalizationUtils | ||
[statisk]
Return true if a codepoint is a white space character. | GlobalizationUtils | ||
![]() |
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | |
![]() |
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | |
[statisk]
Convert a surrogate pair to UTF32. | GlobalizationUtils | ||
![]() |
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | |
![]() |
Returnerar det angivna objektets strängbeteckning. | Object | |
[statisk]
Removes leading and trailing white space characters. | GlobalizationUtils | ||
![]() |
Returnerar det angivna objektets primitiva värde. | Object | |
isDigit | () | metod |
public static function isDigit(ccode:uint):Boolean| Språkversion: | ActionScript 3.0 |
| Produktversion: | Flex 4.5 |
| Körningsmiljöversioner: | Flash Player 10.1, AIR 2.5 |
Return true if a codepoint is a numeric digit.
Supported digits are listed in
flash.globalization.NationalDigitsType.
Parametrar
ccode:uint — input codepoint
|
Boolean — true if a codepoint is a numeric digit.
|
isLeadingSurrogate | () | metod |
public static function isLeadingSurrogate(ccode:uint):Boolean| Språkversion: | ActionScript 3.0 |
| Produktversion: | Flex 4.5 |
| Körningsmiljöversioner: | Flash Player 10.1, AIR 2.5 |
Return true if a codepoint is a leading surrogate.
Parametrar
ccode:uint — The input codepoint.
|
Boolean — true if a codepoint is a leading surrogate,
and false if not.
|
isTrailingSurrogate | () | metod |
public static function isTrailingSurrogate(ccode:uint):Boolean| Språkversion: | ActionScript 3.0 |
| Produktversion: | Flex 4.5 |
| Körningsmiljöversioner: | Flash Player 10.1, AIR 2.5 |
Return true if a codepoint is a trailing surrogate.
Parametrar
ccode:uint — The input codepoint.
|
Boolean — true if a codepoint is a trailing surrogate,
and false if not.
|
isWhiteSpace | () | metod |
public static function isWhiteSpace(ccode:uint):Boolean| Språkversion: | ActionScript 3.0 |
| Produktversion: | Flex 4.5 |
| Körningsmiljöversioner: | 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)
Parametrar
ccode:uint — The input codepoint.
|
Boolean — true if a codepoint is a white space character,
and false if not.
|
surrogateToUTF32 | () | metod |
public static function surrogateToUTF32(c0:uint, c1:uint):uint| Språkversion: | ActionScript 3.0 |
| Produktversion: | Flex 4.5 |
| Körningsmiljöversioner: | Flash Player 10.1, AIR 2.5 |
Convert a surrogate pair to UTF32.
Parametrar
c0:uint — High surrogate.
| |
c1:uint — Low surrogate.
|
uint — The UTF32 equivalent.
|
trim | () | metod |
public static function trim(input:String):String| Språkversion: | ActionScript 3.0 |
| Produktversion: | Flex 4.5 |
| Körningsmiljöversioner: | Flash Player 10.1, AIR 2.5 |
Removes leading and trailing white space characters.
Parametrar
input:String — Input string to process.
|
String — String after removing leading and trailing
white space characters.
|
Tue Jun 12 2018, 01:40 PM Z
Dölj ärvda publika egenskaper
Visa ärvda publika egenskaper