Code:
%%%
%%% UTF-8 string functions
%%%
%%% Deals with UTF-8-encoded strings in binary representation directly (without
%%% converting them to lists).
%%% The terms "char" or "character" are used synonymous for "unicode code point"
%%% in this module.
%%%
%%% Created by Allan Wegan <allanwegan@allanwegan.de>
%%% This module, utf8string.hrl, and utf8string_tests.erl may be used by
%%% everyone for everything.
%%%
-module(utf8string).
-include_lib("utf8string/include/utf8string.hrl").
%%% Public functions:
-export([
create/0, create/1,
concatenate/1, concatenate/2,
is_empty/1, is_equal/2, get_size/1, get_length/1,
remove_code_point/1, remove_trailing_code_point/1,
remove_char/1, remove_trailing_char/1,
remove_chars/2, remove_trailing_chars/2,
remove_prefix/2, remove_suffix/2,
remove_token/2,
replace/2, replace/3, filter/2,
trim_left/1, trim_right/1, trim/1,
get_pattern_private/0,
get_pattern_control/0,
get_pattern_lineending/0,
get_pattern_space/0,
get_pattern_whitespace/0,
get_pattern_non_ascii/0,
get_pattern_ascii_control/0,
get_pattern_ascii_lineending/0,
get_pattern_ascii_space/0,
get_pattern_ascii_whitespace/0,
get_pattern_ascii_digit/0,
get_pattern_ascii_alpha_lower/0,
get_pattern_ascii_alpha_upper/0,
get_pattern_ascii_alpha/0,
get_pattern_ascii_alphanumeric/0,
reverse/1,
to_binary/1, to_list/1,
urlencode/1, urldecode/1,
urlencode_binary/1, urldecode_binary/1,
from_integer/2, to_integer/2
]).