| Pakiet | spark.validators.supportClasses |
| Klasa | public class GlobalizationUtils |
| Dziedziczenie | GlobalizationUtils Object |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4.5 |
| Wersje środowiska wykonawczego: | 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.
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
[statyczny]
Return true if a codepoint is a numeric digit. | GlobalizationUtils | ||
[statyczny]
Return true if a codepoint is a leading surrogate. | GlobalizationUtils | ||
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
[statyczny]
Return true if a codepoint is a trailing surrogate. | GlobalizationUtils | ||
[statyczny]
Return true if a codepoint is a white space character. | GlobalizationUtils | ||
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
[statyczny]
Convert a surrogate pair to UTF32. | GlobalizationUtils | ||
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
![]() |
Zwraca ciąg reprezentujący określony obiekt. | Object | |
[statyczny]
Removes leading and trailing white space characters. | GlobalizationUtils | ||
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
isDigit | () | metoda |
public static function isDigit(ccode:uint):Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4.5 |
| Wersje środowiska wykonawczego: | Flash Player 10.1, AIR 2.5 |
Return true if a codepoint is a numeric digit.
Supported digits are listed in
flash.globalization.NationalDigitsType.
Parametry
ccode:uint — input codepoint
|
Boolean — true if a codepoint is a numeric digit.
|
isLeadingSurrogate | () | metoda |
public static function isLeadingSurrogate(ccode:uint):Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4.5 |
| Wersje środowiska wykonawczego: | Flash Player 10.1, AIR 2.5 |
Return true if a codepoint is a leading surrogate.
Parametry
ccode:uint — The input codepoint.
|
Boolean — true if a codepoint is a leading surrogate,
and false if not.
|
isTrailingSurrogate | () | metoda |
public static function isTrailingSurrogate(ccode:uint):Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4.5 |
| Wersje środowiska wykonawczego: | Flash Player 10.1, AIR 2.5 |
Return true if a codepoint is a trailing surrogate.
Parametry
ccode:uint — The input codepoint.
|
Boolean — true if a codepoint is a trailing surrogate,
and false if not.
|
isWhiteSpace | () | metoda |
public static function isWhiteSpace(ccode:uint):Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4.5 |
| Wersje środowiska wykonawczego: | 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)
Parametry
ccode:uint — The input codepoint.
|
Boolean — true if a codepoint is a white space character,
and false if not.
|
surrogateToUTF32 | () | metoda |
public static function surrogateToUTF32(c0:uint, c1:uint):uint| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4.5 |
| Wersje środowiska wykonawczego: | Flash Player 10.1, AIR 2.5 |
Convert a surrogate pair to UTF32.
Parametry
c0:uint — High surrogate.
| |
c1:uint — Low surrogate.
|
uint — The UTF32 equivalent.
|
trim | () | metoda |
public static function trim(input:String):String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4.5 |
| Wersje środowiska wykonawczego: | Flash Player 10.1, AIR 2.5 |
Removes leading and trailing white space characters.
Parametry
input:String — Input string to process.
|
String — String after removing leading and trailing
white space characters.
|
Tue Jun 12 2018, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne