TextView

Immutable string

Members

Aliases

Comparator
alias Comparator = int delegate(const(T)[] a, const(T)[] b)
Undocumented in source.

Functions

comparator
Comparator comparator(Comparator other)

Set the comparator delegate

compare
int compare(const(TextView) other)

Compare this Text start with another. Returns 0 if the content matches, less than zero if this Text is "less" than the other, or greater than zero where this Text is "bigger".

compare
int compare(const(T)[] chars)

Compare this Text start with an array. Returns 0 if the content matches, less than zero if this Text is "less" than the other, or greater than zero where this Text is "bigger".

copy
T[] copy(T[] dst)

Return content from this Text. A slice of dst is returned, representing a copy of the content. The slice is clipped to the minimum of either the length of the provided array, or the length of the content minus the stipulated start point

encoding
TypeInfo encoding()

Get the encoding type

ends
bool ends(const(TextView) other)

Does this Text end with another?

ends
bool ends(const(T)[] chars)

Does this Text end with the specified string?

equals
bool equals(const(TextView) other)

Is this Text equal to another?

equals
bool equals(const(T)[] other)

Is this Text equal to the the provided text?

mslice
T[] mslice()
Undocumented in source.
opCmp
int opCmp(Object o)

Compare this Text to another

opEquals
bool opEquals(Object other)

Is this Text equal to another?

opEquals
bool opEquals(const(T)[] other)

Is this Text equal to another?

slice
const(T)[] slice()

Return an alias to the content of this TextView. Note that you are bound by honour to leave this content wholly unmolested. D surely needs some way to enforce immutability upon array references

starts
bool starts(const(TextView) other)

Does this Text start with another?

starts
bool starts(const(T)[] chars)

Does this Text start with the specified string?

toHash
hash_t toHash()

Hash this Text

Properties

length
size_t length [@property getter]

Return the length of the valid content

Inherited Members

From UniText

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
char[] toString(char[] dst)
Undocumented in source.
toString16
wchar[] toString16(wchar[] dst)
Undocumented in source.
toString32
dchar[] toString32(dchar[] dst)
Undocumented in source.
encoding
TypeInfo encoding()
Undocumented in source.

Meta