| Pakiet | mx.utils |
| Klasa | public class RPCStringUtil |
| Dziedziczenie | RPCStringUtil Object |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Właściwości publiczne
Metody publiczne
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
[statyczny]
Returns true if the specified string is
a single space, tab, carriage return, newline, or formfeed character. | RPCStringUtil | ||
![]() |
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]
Substitutes "{n}" tokens within the specified string
with the respective arguments passed in. | RPCStringUtil | ||
![]() |
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 all whitespace characters from the beginning and end
of the specified string. | RPCStringUtil | ||
[statyczny]
Removes all whitespace characters from the beginning and end
of each element in an Array, where the Array is stored as a String. | RPCStringUtil | ||
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
Szczegół metody
isWhitespace | () | metoda |
public static function isWhitespace(character:String):Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Returns true if the specified string is
a single space, tab, carriage return, newline, or formfeed character.
Parametry
character:String — The String that is is being queried.
|
Boolean — true if the specified string is
a single space, tab, carriage return, newline, or formfeed character.
|
substitute | () | metoda |
public static function substitute(str:String, ... rest):String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Substitutes "{n}" tokens within the specified string with the respective arguments passed in.
Parametry
str:String — The string to make substitutions in.
This string can contain special tokens of the form
{n}, where n is a zero based index,
that will be replaced with the additional parameters
found at that index if specified.
| |
... rest — Additional parameters that can be substituted
in the str parameter at each {n}
location, where n is an integer (zero based)
index value into the array of values specified.
If the first parameter is an array this array will be used as
a parameter list.
This allows reuse of this routine in other methods that want to
use the ... rest signature.
For example
public function myTracer(str:String, ... rest):void
{
label.text += StringUtil.substitute(str, rest) + "\n";
}
|
String — New string with all of the {n} tokens
replaced with the respective arguments specified.
|
trim | () | metoda |
public static function trim(str:String):String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Removes all whitespace characters from the beginning and end of the specified string.
Parametry
str:String — The String whose whitespace should be trimmed.
|
String — Updated String where whitespace was removed from the
beginning and end.
|
trimArrayElements | () | metoda |
public static function trimArrayElements(value:String, delimiter:String):String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Removes all whitespace characters from the beginning and end of each element in an Array, where the Array is stored as a String.
Parametry
value:String — The String whose whitespace should be trimmed.
| |
delimiter:String — The String that delimits each Array element in the string.
|
String — Updated String where whitespace was removed from the
beginning and end of each element.
|
Tue Jun 12 2018, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne