Module ustring

Ustring - Unicode strings for Erlang.

Authors: Hasan Veldstra (hasan@12monkeys.co.uk) [web site: http://12monkeys.co.uk/starling].

Description

Ustring - Unicode strings for Erlang.

Function Index

capitalize/1Capitalizes the first word in the string, leaves the rest unchanged.
capitalize/2Capitalizes every word in the string.
concat/2Concatenates two strings.
downcase/1Converts string to lowercase.
empty/0Creates an empty string.
eql/2Compares strings (case-insensitive).
equal/2Equivalent to exact / 2.
exact/2Compares strings (case-sensitive).
gsub/3Returns a string in which all occurences of Old have been replaced with New.
index/2Returns the position of first occurence of Substr in Str.
len/1Returns length of string in graphemes (characters as users see them).
len/2Returns length of string in code units (2-byte pairs).
new/1Creates a ustring from a list or binary of UTF-8 code units.
new/2
pr/1Makes string printable.
rindex/2Returns the position of last occurence of Substr in Str.
rstr/2Equivalent to rindex / 2.
str/2Equivalent to index / 2.
substr/2Get substring of length Len beginning at the first character.
substr/3Get substring of length Len beginning at character Start.
timeout/0
to/2Converts string to a list of UTF-8 code units.
to_lower/1Equivalent to downcase / 1.
to_upper/1Equivalent to upcase / 1.
upcase/1Converts string to uppercase.

Function Details

capitalize/1

capitalize() -> term()

Capitalizes the first word in the string, leaves the rest unchanged.

capitalize/2

capitalize() -> term()

Capitalizes every word in the string.

concat/2

concat() -> term()

Concatenates two strings.

downcase/1

downcase() -> term()

Converts string to lowercase.

empty/0

empty() -> term()

Creates an empty string.

eql/2

eql() -> term()

Compares strings (case-insensitive).

equal/2

equal() -> term()

Equivalent to exact / 2.

exact/2

exact() -> term()

Compares strings (case-sensitive).

gsub/3

gsub() -> term()

Returns a string in which all occurences of Old have been replaced with New.

index/2

index() -> term()

Returns the position of first occurence of Substr in Str.

len/1

len() -> term()

Returns length of string in graphemes (characters as users see them).

len/2

len() -> term()

Returns length of string in code units (2-byte pairs).

new/1

new() -> term()

Creates a ustring from a list or binary of UTF-8 code units.

new/2

new() -> term()

pr/1

pr() -> term()

Makes string printable.

rindex/2

rindex() -> term()

Returns the position of last occurence of Substr in Str.

rstr/2

rstr() -> term()

Equivalent to rindex / 2.

str/2

str() -> term()

Equivalent to index / 2.

substr/2

substr() -> term()

Get substring of length Len beginning at the first character.

substr/3

substr() -> term()

Get substring of length Len beginning at character Start.

timeout/0

timeout() -> term()

to/2

to() -> term()

Converts string to a list of UTF-8 code units.

to_lower/1

to_lower() -> term()

Equivalent to downcase / 1.

to_upper/1

to_upper() -> term()

Equivalent to upcase / 1.

upcase/1

upcase() -> term()

Converts string to uppercase.


Generated by EDoc, Mar 11 2008, 13:19:54.