View Source erg_unicode (erg_unicode v0.1.0)

Summary

Functions

Converts a possibly unicode list of integers into a binary representing Unicode characters. Returns binary on success or 'error' atom otherwise.

Converts a possibly deep list of integers and binaries into a list of integers representing Unicode characters. Returns unicode character list on success or 'error' atom otherwise. The binaries in the input can have characters encoded as one of the following: - ISO Latin-1 (0-255, one character per byte). Here, case parameter InEncoding is to be specified as latin1. - One of the UTF-encodings, which is specified as parameter InEncoding.

Returns true if the specified unicode list contains only ASCII characters or false otherwise.

Returns true if the specified unicode list contains only ASCII alphabetic characters or false otherwise.

Returns true if the specified unicode list contains only ASCII alphabetic lower case characters or false otherwise.

Returns true if the specified unicode list contains only ASCII alphabetic and numeric characters or false otherwise.

Returns true if the specified unicode list contains only ASCII alphabetic lower case and numeric characters or false otherwise.

Returns true if the specified unicode list contains only ASCII alphabetic upper case and numeric characters or false otherwise.

Returns true if the specified unicode list contains only ASCII alphabetic upper case characters or false otherwise.

Returns true if the specified unicode list contains only ASCII numeric characters or false otherwise.

Returns true if the specified unicode list contains only alphabetic letters or false otherwise. All letters in all languages are taken in account not only standard english ASCII letters. This function allow you to check for valid names for example.

Replace the specified list of characters with the specified character or characters

Replace the specified string with the specified character or characters

Trim unicode list

Trim unicode list left, right, both or none

Left trim unicode list

Right trim unicode list

Functions

Link to this function

characters_to_binary(Input)

View Source

Converts a possibly unicode list of integers into a binary representing Unicode characters. Returns binary on success or 'error' atom otherwise.

Link to this function

characters_to_binary(Input, InEncoding)

View Source
Link to this function

characters_to_list(Input)

View Source

Converts a possibly deep list of integers and binaries into a list of integers representing Unicode characters. Returns unicode character list on success or 'error' atom otherwise. The binaries in the input can have characters encoded as one of the following: - ISO Latin-1 (0-255, one character per byte). Here, case parameter InEncoding is to be specified as latin1. - One of the UTF-encodings, which is specified as parameter InEncoding.

Link to this function

characters_to_list(Input, InEncoding)

View Source
Link to this function

explode_trim_skip_empty(Search, Subject)

View Source

Returns true if the specified unicode list contains only ASCII characters or false otherwise.

Returns true if the specified unicode list contains only ASCII alphabetic characters or false otherwise.

Returns true if the specified unicode list contains only ASCII alphabetic lower case characters or false otherwise.

Link to this function

is_ascii_alpha_numeric(T)

View Source

Returns true if the specified unicode list contains only ASCII alphabetic and numeric characters or false otherwise.

Link to this function

is_ascii_alpha_numeric_lower(T)

View Source

Returns true if the specified unicode list contains only ASCII alphabetic lower case and numeric characters or false otherwise.

Link to this function

is_ascii_alpha_numeric_upper(T)

View Source

Returns true if the specified unicode list contains only ASCII alphabetic upper case and numeric characters or false otherwise.

Returns true if the specified unicode list contains only ASCII alphabetic upper case characters or false otherwise.

Returns true if the specified unicode list contains only ASCII numeric characters or false otherwise.

Returns true if the specified unicode list contains only alphabetic letters or false otherwise. All letters in all languages are taken in account not only standard english ASCII letters. This function allow you to check for valid names for example.

Link to this function

replace(T, Replace, Subject)

View Source

Replace the specified list of characters with the specified character or characters

Link to this function

replace_string(Search, Replace, Subject)

View Source

Replace the specified string with the specified character or characters

Trim unicode list

Trim unicode list left, right, both or none

Left trim unicode list

Right trim unicode list