Package | com.cyntaxic.cyntils |
Class | public class CynString |
Inheritance | CynString Object |
CynString
class contains static functions for
manipulation of strings.
Method | Defined By | ||
---|---|---|---|
compact(value:String):String [static]
Compact a string. | CynString | ||
lowerCamelToTitle(value:String):String [static]
Converts an lower camel case string to a string in title case. | CynString | ||
ltrim(input:String):String [static]
Removes whitespace from the front of the specified string. | CynString | ||
replaceAll(original:String, find:String, replace:String):String [static]
Replaces all string matches in the string. | CynString | ||
rtrim(input:String):String [static]
Removes whitespace from the end of the specified string. | CynString | ||
trim(input:String):String [static]
Removes whitespace from the front and the end of the specified string. | CynString | ||
upperCamelToTitle(value:String):String [static]
Converts an upper camel case string to a string in title case. | CynString | ||
upperCaseFirst(value:String):String [static]
Upper cases the first letter in the string. | CynString |
compact | () | method |
public static function compact(value:String):String
Compact a string. Removes new lines, tabs and carriage returns.
Parameters
value:String — The string to compact.
|
String — The compacted string.
|
lowerCamelToTitle | () | method |
public static function lowerCamelToTitle(value:String):String
Converts an lower camel case string to a string in title case.
Parameters
value:String — The string to convert.
|
String — The converted title case string.
|
ltrim | () | method |
public static function ltrim(input:String):String
Removes whitespace from the front of the specified string.
Parameters
input:String — The string whose beginning whitespace will will be removed.
|
String — A string with whitespace removed from the begining.
|
replaceAll | () | method |
public static function replaceAll(original:String, find:String, replace:String):String
Replaces all string matches in the string.
Parameters
original:String — The string to search.
| |
find:String — The substring to find.
| |
replace:String — The replacement of the substring.
|
String — The edited string.
|
rtrim | () | method |
public static function rtrim(input:String):String
Removes whitespace from the end of the specified string.
Parameters
input:String — The string whose ending whitespace will will be removed.
|
String — A string with whitespace removed from the end.
|
trim | () | method |
public static function trim(input:String):String
Removes whitespace from the front and the end of the specified string.
Parameters
input:String — The string whose beginning and ending whitespace will be removed.
|
String — A string with whitespace removed from the begining and end.
|
upperCamelToTitle | () | method |
public static function upperCamelToTitle(value:String):String
Converts an upper camel case string to a string in title case.
Parameters
value:String — The string to convert.
|
String — The converted title case string.
|
upperCaseFirst | () | method |
public static function upperCaseFirst(value:String):String
Upper cases the first letter in the string.
Parameters
value:String — The string to be upper cased.
|
String — The string with an uppercase first character.
|