Text
A facade structure that represents a part of a string. This can be used to do string manipulations without copying too many strings.
Constructors
Constructor | Description |
new(str)
Signature: str:string -> unit
|
|
new(str, start)
Signature: (str:string * start:int) -> unit
|
|
new(str, start, count)
Signature: (str:string * start:int * count:int) -> unit
|
|
new(start, end, str)
Signature: (start:int * end:int * str:string) -> unit
|
Instance members
Instance member | Description |
Count
Signature: int
|
|
EndsWith(postfix)
Signature: postfix:string -> bool
|
|
EndsWith(postfix)
Signature: postfix:Text -> bool
|
|
Equals(obj)
Signature: obj:obj -> bool
Modifiers: abstract |
|
Equals(other)
Signature: other:Text -> bool
Modifiers: abstract |
|
GetHashCode()
Signature: unit -> int
Modifiers: abstract |
|
GetLineOfPos(line, pos)
Signature: (line:Line * pos:int) -> Line
|
Given a known previous line, get the line at the current position. |
GetLineOfPos(pos)
Signature: pos:int -> Line
|
Get the line of the current position without knowledge of any pervious line. |
IndexOf(ch)
Signature: ch:char -> int
|
|
IndexOf(str)
Signature: str:string -> int
|
|
IndexOf(ch, start)
Signature: (ch:char * start:int) -> int
|
|
IndexOf(str, start)
Signature: (str:string * start:int) -> int
|
|
IndexOf(ch, start, count)
Signature: (ch:char * start:int * count:int) -> int
|
|
IndexOf(str, start, count)
Signature: (str:string * start:int * count:int) -> int
|
|
IsEmpty
Signature: bool
|
|
IsOnly(charPredicate)
Signature: charPredicate:Func<char,bool> -> bool
|
Returns true if the supplied predicate is true for all characters of the text. |
IsWhiteSpace
Signature: bool
|
|
[arg1]
Signature: int -> char
|
|
LastIndexOf(ch)
Signature: ch:char -> int
|
|
LastIndexOf(str)
Signature: str:string -> int
|
|
LastIndexOf(ch, start)
Signature: (ch:char * start:int) -> int
|
|
LastIndexOf(str, start)
Signature: (str:string * start:int) -> int
|
|
LastIndexOf(ch, start, count)
Signature: (ch:char * start:int * count:int) -> int
|
|
LastIndexOf(str, start, count)
Signature: (str:string * start:int * count:int) -> int
|
|
NestedBracketSplit(splitLevel)
Signature: splitLevel:int -> IEnumerable<Text>
|
Splits a nested structure of comma-separated square bracked delimited lists at a specified split level. Level 0 means that the split is performed outside the outermost square brackets. Level 1 means that the split is peformed inside the outermost square brackets. NOTE: The resulting parts are not trimmed. Use the Trim extension to trim all resulting strings. |
ParseBool()
Signature: unit -> bool
|
|
ParseByte()
Signature: unit -> byte
|
|
ParseDouble()
Signature: unit -> float
|
|
ParsedValueOfBoolAt(start)
Signature: start:int -> ParsedValue<bool>
|
|
ParsedValueOfByteAt(start)
Signature: start:int -> ParsedValue<byte>
|
|
ParsedValueOfDoubleAt(start)
Signature: start:int -> ParsedValue<float>
|
|
ParsedValueOfFloatAt(start)
Signature: start:int -> ParsedValue<float32>
|
|
ParsedValueOfIntAt(start)
Signature: start:int -> ParsedValue<int>
|
|
ParsedValueOfLongAt(start)
Signature: start:int -> ParsedValue<int64>
|
|
ParsedValueOfSByteAt(start)
Signature: start:int -> ParsedValue<sbyte>
|
|
ParsedValueOfShortAt(start)
Signature: start:int -> ParsedValue<int16>
|
|
ParsedValueOfUIntAt(start)
Signature: start:int -> ParsedValue<uint32>
|
|
ParsedValueOfULongAt(start)
Signature: start:int -> ParsedValue<uint64>
|
|
ParsedValueOfUShortAt(start)
Signature: start:int -> ParsedValue<uint16>
|
|
ParseFloat()
Signature: unit -> float32
|
|
ParseInt()
Signature: unit -> int
|
|
ParseLong()
Signature: unit -> int64
|
|
ParseSByte()
Signature: unit -> sbyte
|
|
ParseShort()
Signature: unit -> int16
|
|
ParseUInt()
Signature: unit -> uint32
|
|
ParseULong()
Signature: unit -> uint64
|
|
ParseUShort()
Signature: unit -> uint16
|
|
ReplaceIdentifiers(changeMap)
Signature: changeMap:Dictionary<string,string> -> Text
|
|
ReplaceParts(partRegex, changeMap)
Signature: (partRegex:Regex * changeMap:Dictionary<string,string>) -> Text
|
|
Skip(skipFun, start)
Signature: (skipFun:Func<char,bool> * start:int) -> int
|
|
SkipWhiteSpace(start)
Signature: start:int -> int
|
Returns the first position after position start in the text, that does not contain a whitespace character, or the length of the text if it is all whitespace. |
StartsWith(prefix)
Signature: prefix:string -> bool
|
|
StartsWith(prefix)
Signature: prefix:Text -> bool
|
|
Sub(start, end)
Signature: (start:int * end:int) -> Text
|
Return the subtext in the range [start, end). For the start index, negative indices count from the end. For the end index, negative indices and the index 0 count from the end. The ranges are clamped to the input text so that no exceptions can occur. If the the start and end index are crossed, the empty text is returned. As an example the call t.Sub(-3, 0) returns a text containing the last 3 characters t or the complete text t, if its length is less than 3 characters. |
SubString(start, count)
Signature: (start:int * count:int) -> string
|
|
SubText(start)
Signature: start:int -> Text
|
|
SubText(start, count)
Signature: (start:int * count:int) -> Text
|
|
ToString()
Signature: unit -> string
Modifiers: abstract |
|
Trimmed(trimIfTrue)
Signature: trimIfTrue:Func<char,bool> -> Text
|
Returns the text without the caracters at the start and at the end, for which the supplied predicate is true. |
TrimmedAtEnd(trimIfTrue)
Signature: trimIfTrue:Func<char,bool> -> Text
|
Returns the text without the characters at the end, for which the supplied predicate is true. |
TrimmedAtStart(trimIfTrue)
Signature: trimIfTrue:Func<char,bool> -> Text
|
Returns the text without the characters at the start, for which the supplied predicate is true. |
WhiteSpaceAtEndTrimmed
Signature: Text
|
|
WhiteSpaceAtStartTrimmed
Signature: Text
|
|
WhiteSpaceTrimmed
Signature: Text
|
Static members
Static member | Description |
op_Equality(t, t1)
Signature: (t:Text * t1:Text) -> bool
|
|
op_Equality(t, s1)
Signature: (t:Text * s1:string) -> bool
|
|
op_Inequality(t, t1)
Signature: (t:Text * t1:Text) -> bool
|
|
op_Inequality(t, s1)
Signature: (t:Text * s1:string) -> bool
|