C# Class Fan.Sys.FanStr

FanStr defines the methods for sys::string. The actual class used for representation is F.lang.String.
Show file Open project: xored/f4 Class Usage Examples

Public Properties

Property Type Description
m_defVal string

Public Methods

Method Description
@in ( string self ) : InStream
all ( string self, Func f ) : bool
any ( string self, Func f ) : bool
capitalize ( string self ) : string
caseInsensitiveHash ( string self ) : int
chars ( string self ) : List
compare ( string self, object obj ) : long
compareIgnoreCase ( string a, string b ) : long
contains ( string self, string s ) : bool
containsChar ( string self, long ch ) : bool
decapitalize ( string self ) : string
each ( string self, Func f ) : void
eachr ( string self, Func f ) : void
endsWith ( string self, string s ) : bool
equals ( string self, object obj ) : bool
equalsIgnoreCase ( string a, string b ) : bool
fromChars ( List chars ) : string
fromDisplayName ( string self ) : string
get ( string self, long index ) : long
getRange ( string self, Range r ) : string
getSafe ( String self, long index ) : long
getSafe ( String self, long index, long def ) : long
hash ( string self ) : long
index ( string self, string s ) : Long
index ( string self, string s, long off ) : Long
indexIgnoreCase ( string self, string s ) : Long
indexIgnoreCase ( string self, string s, long off ) : Long
indexr ( string self, string s ) : Long
indexr ( string self, string s, long off ) : Long
indexrIgnoreCase ( string self, string s ) : Long
indexrIgnoreCase ( string self, string s, long off ) : Long
intern ( string self ) : string
isAlpha ( string self ) : bool
isAlphaNum ( string self ) : bool
isAscii ( string self ) : bool
isEmpty ( string self ) : bool
isEveryChar ( string self, int ch ) : bool
isLower ( string self ) : bool
isSpace ( string self ) : bool
isUpper ( string self ) : bool
justl ( string self, long width ) : string
justr ( string self, long width ) : string
localeCapitalize ( string self ) : string
localeCompare ( string self, string x ) : long
localeDecapitalize ( string self ) : string
localeLower ( string self ) : string
localeUpper ( string self ) : string
lower ( string self ) : string
makeTrim ( StringBuilder s ) : string
numNewlines ( string self ) : long
padl ( string self, long width ) : string
padl ( string self, long width, long ch ) : string
padr ( string self, long width ) : string
padr ( string self, long width, long ch ) : string
plus ( string self, object obj ) : string
replace ( string self, string from, string to ) : string
reverse ( string self ) : string
size ( string self ) : long
spaces ( long n ) : string
split ( string self ) : List
split ( string self, Long separator ) : List
split ( string self, Long separator, bool trim ) : List
splitLines ( string self ) : List
splitws ( String val ) : List
startsWith ( string self, string s ) : bool
toBool ( string self ) : Boolean
toBool ( string self, bool check ) : Boolean
toBuf ( string self ) : Buf
toBuf ( string self, Charset charset ) : Buf
toCode ( string self ) : string
toCode ( string self, Long quote ) : string
toCode ( string self, Long quote, bool escapeUnicode ) : string
toDecimal ( string self ) : BigDecimal
toDecimal ( string self, bool check ) : BigDecimal
toDisplayName ( string self ) : string
toFloat ( string self ) : Double
toFloat ( string self, bool check ) : Double
toInt ( string self ) : Long
toInt ( string self, long radix ) : Long
toInt ( string self, long radix, bool check ) : Long
toLocale ( string self ) : string
toRegex ( string self ) : Regex
toStr ( string self ) : string
toUri ( string self ) : Uri
toXml ( string self ) : string
trim ( string self ) : string
trimEnd ( string self ) : string
trimStart ( string self ) : string
trimToNull ( string self ) : string
type ( string self ) : Type
upper ( string self ) : string

Private Methods

Method Description
FanStr ( ) : System
hex ( int nib ) : int
nStartsWith ( string s, string pre, int off ) : bool
neic ( int a, int b ) : bool
splitStr ( String val, int s, int e, bool trim ) : string

Method Details

@in() public static method

public static @in ( string self ) : InStream
self string
return InStream

all() public static method

public static all ( string self, Func f ) : bool
self string
f Func
return bool

any() public static method

public static any ( string self, Func f ) : bool
self string
f Func
return bool

capitalize() public static method

public static capitalize ( string self ) : string
self string
return string

caseInsensitiveHash() public static method

public static caseInsensitiveHash ( string self ) : int
self string
return int

chars() public static method

public static chars ( string self ) : List
self string
return List

compare() public static method

public static compare ( string self, object obj ) : long
self string
obj object
return long

compareIgnoreCase() public static method

public static compareIgnoreCase ( string a, string b ) : long
a string
b string
return long

contains() public static method

public static contains ( string self, string s ) : bool
self string
s string
return bool

containsChar() public static method

public static containsChar ( string self, long ch ) : bool
self string
ch long
return bool

decapitalize() public static method

public static decapitalize ( string self ) : string
self string
return string

each() public static method

public static each ( string self, Func f ) : void
self string
f Func
return void

eachr() public static method

public static eachr ( string self, Func f ) : void
self string
f Func
return void

endsWith() public static method

public static endsWith ( string self, string s ) : bool
self string
s string
return bool

equals() public static method

public static equals ( string self, object obj ) : bool
self string
obj object
return bool

equalsIgnoreCase() public static method

public static equalsIgnoreCase ( string a, string b ) : bool
a string
b string
return bool

fromChars() public static method

public static fromChars ( List chars ) : string
chars List
return string

fromDisplayName() public static method

public static fromDisplayName ( string self ) : string
self string
return string

get() public static method

public static get ( string self, long index ) : long
self string
index long
return long

getRange() public static method

public static getRange ( string self, Range r ) : string
self string
r Range
return string

getSafe() public static method

public static getSafe ( String self, long index ) : long
self String
index long
return long

getSafe() public static method

public static getSafe ( String self, long index, long def ) : long
self String
index long
def long
return long

hash() public static method

public static hash ( string self ) : long
self string
return long

index() public static method

public static index ( string self, string s ) : Long
self string
s string
return Long

index() public static method

public static index ( string self, string s, long off ) : Long
self string
s string
off long
return Long

indexIgnoreCase() public static method

public static indexIgnoreCase ( string self, string s ) : Long
self string
s string
return Long

indexIgnoreCase() public static method

public static indexIgnoreCase ( string self, string s, long off ) : Long
self string
s string
off long
return Long

indexr() public static method

public static indexr ( string self, string s ) : Long
self string
s string
return Long

indexr() public static method

public static indexr ( string self, string s, long off ) : Long
self string
s string
off long
return Long

indexrIgnoreCase() public static method

public static indexrIgnoreCase ( string self, string s ) : Long
self string
s string
return Long

indexrIgnoreCase() public static method

public static indexrIgnoreCase ( string self, string s, long off ) : Long
self string
s string
off long
return Long

intern() public static method

public static intern ( string self ) : string
self string
return string

isAlpha() public static method

public static isAlpha ( string self ) : bool
self string
return bool

isAlphaNum() public static method

public static isAlphaNum ( string self ) : bool
self string
return bool

isAscii() public static method

public static isAscii ( string self ) : bool
self string
return bool

isEmpty() public static method

public static isEmpty ( string self ) : bool
self string
return bool

isEveryChar() public static method

public static isEveryChar ( string self, int ch ) : bool
self string
ch int
return bool

isLower() public static method

public static isLower ( string self ) : bool
self string
return bool

isSpace() public static method

public static isSpace ( string self ) : bool
self string
return bool

isUpper() public static method

public static isUpper ( string self ) : bool
self string
return bool

justl() public static method

public static justl ( string self, long width ) : string
self string
width long
return string

justr() public static method

public static justr ( string self, long width ) : string
self string
width long
return string

localeCapitalize() public static method

public static localeCapitalize ( string self ) : string
self string
return string

localeCompare() public static method

public static localeCompare ( string self, string x ) : long
self string
x string
return long

localeDecapitalize() public static method

public static localeDecapitalize ( string self ) : string
self string
return string

localeLower() public static method

public static localeLower ( string self ) : string
self string
return string

localeUpper() public static method

public static localeUpper ( string self ) : string
self string
return string

lower() public static method

public static lower ( string self ) : string
self string
return string

makeTrim() public static method

public static makeTrim ( StringBuilder s ) : string
s StringBuilder
return string

numNewlines() public static method

public static numNewlines ( string self ) : long
self string
return long

padl() public static method

public static padl ( string self, long width ) : string
self string
width long
return string

padl() public static method

public static padl ( string self, long width, long ch ) : string
self string
width long
ch long
return string

padr() public static method

public static padr ( string self, long width ) : string
self string
width long
return string

padr() public static method

public static padr ( string self, long width, long ch ) : string
self string
width long
ch long
return string

plus() public static method

public static plus ( string self, object obj ) : string
self string
obj object
return string

replace() public static method

public static replace ( string self, string from, string to ) : string
self string
from string
to string
return string

reverse() public static method

public static reverse ( string self ) : string
self string
return string

size() public static method

public static size ( string self ) : long
self string
return long

spaces() public static method

public static spaces ( long n ) : string
n long
return string

split() public static method

public static split ( string self ) : List
self string
return List

split() public static method

public static split ( string self, Long separator ) : List
self string
separator Long
return List

split() public static method

public static split ( string self, Long separator, bool trim ) : List
self string
separator Long
trim bool
return List

splitLines() public static method

public static splitLines ( string self ) : List
self string
return List

splitws() public static method

public static splitws ( String val ) : List
val String
return List

startsWith() public static method

public static startsWith ( string self, string s ) : bool
self string
s string
return bool

toBool() public static method

public static toBool ( string self ) : Boolean
self string
return Boolean

toBool() public static method

public static toBool ( string self, bool check ) : Boolean
self string
check bool
return Boolean

toBuf() public static method

public static toBuf ( string self ) : Buf
self string
return Buf

toBuf() public static method

public static toBuf ( string self, Charset charset ) : Buf
self string
charset Charset
return Buf

toCode() public static method

public static toCode ( string self ) : string
self string
return string

toCode() public static method

public static toCode ( string self, Long quote ) : string
self string
quote Long
return string

toCode() public static method

public static toCode ( string self, Long quote, bool escapeUnicode ) : string
self string
quote Long
escapeUnicode bool
return string

toDecimal() public static method

public static toDecimal ( string self ) : BigDecimal
self string
return BigDecimal

toDecimal() public static method

public static toDecimal ( string self, bool check ) : BigDecimal
self string
check bool
return BigDecimal

toDisplayName() public static method

public static toDisplayName ( string self ) : string
self string
return string

toFloat() public static method

public static toFloat ( string self ) : Double
self string
return Double

toFloat() public static method

public static toFloat ( string self, bool check ) : Double
self string
check bool
return Double

toInt() public static method

public static toInt ( string self ) : Long
self string
return Long

toInt() public static method

public static toInt ( string self, long radix ) : Long
self string
radix long
return Long

toInt() public static method

public static toInt ( string self, long radix, bool check ) : Long
self string
radix long
check bool
return Long

toLocale() public static method

public static toLocale ( string self ) : string
self string
return string

toRegex() public static method

public static toRegex ( string self ) : Regex
self string
return Regex

toStr() public static method

public static toStr ( string self ) : string
self string
return string

toUri() public static method

public static toUri ( string self ) : Uri
self string
return Uri

toXml() public static method

public static toXml ( string self ) : string
self string
return string

trim() public static method

public static trim ( string self ) : string
self string
return string

trimEnd() public static method

public static trimEnd ( string self ) : string
self string
return string

trimStart() public static method

public static trimStart ( string self ) : string
self string
return string

trimToNull() public static method

public static trimToNull ( string self ) : string
self string
return string

type() public static method

public static type ( string self ) : Type
self string
return Type

upper() public static method

public static upper ( string self ) : string
self string
return string

Property Details

m_defVal public static property

public static string m_defVal
return string