Current section

Files

Jump to
cloudi_core doc cloudi_string.html
Raw

doc/cloudi_string.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Module cloudi_string</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
</head>
<body bgcolor="white">
<div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
<hr>
<h1>Module cloudi_string</h1>
<ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>
<h3><a name="String_manipulation_functions">String manipulation functions</a></h3>.
<p>Copyright © 2009-2018 Michael Truog</p>
<p><b>Version:</b> 1.7.4 Jun 3 2020 18:48:04
------------------------------------------------------------------------</p>
<p><b>Authors:</b> Michael Truog (<a href="mailto:mjtruog at protonmail dot com"><tt>mjtruog at protonmail dot com</tt></a>).</p>
<h2><a name="description">Description</a></h2>
<h3><a name="String_manipulation_functions">String manipulation functions</a></h3>
<h2><a name="index">Function Index</a></h2>
<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#afterl-2">afterl/2</a></td><td>
<h4><a name="Return_the_string_that_occurs_after_a_character,_otherwise_return_an_empty_string,_when_traversing_left_to_right.">Return the string that occurs after a character, otherwise return an empty string, when traversing left to right.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#afterl-3">afterl/3</a></td><td>
<h4><a name="Return_the_string_that_occurs_after_a_character,_otherwise_return_based_on_the_failure_atom,_when_traversing_left_to_right.">Return the string that occurs after a character, otherwise return based on the failure atom, when traversing left to right.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#afterr-2">afterr/2</a></td><td>
<h4><a name="Return_the_string_that_occurs_after_a_character,_otherwise_return_an_empty_string,_when_traversing_right_to_left.">Return the string that occurs after a character, otherwise return an empty string, when traversing right to left.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#afterr-3">afterr/3</a></td><td>
<h4><a name="Return_the_string_that_occurs_after_a_character,_otherwise_return_based_on_the_failure_atom,_when_traversing_right_to_left.">Return the string that occurs after a character, otherwise return based on the failure atom, when traversing right to left.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#beforel-2">beforel/2</a></td><td>
<h4><a name="Return_the_string_that_occurs_before_a_character,_otherwise_return_an_empty_string,_when_traversing_left_to_right.">Return the string that occurs before a character, otherwise return an empty string, when traversing left to right.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#beforel-3">beforel/3</a></td><td>
<h4><a name="Return_the_string_that_occurs_before_a_character,_otherwise_return_based_on_the_failure_atom,_when_traversing_left_to_right.">Return the string that occurs before a character, otherwise return based on the failure atom, when traversing left to right.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#beforer-2">beforer/2</a></td><td>
<h4><a name="Return_the_string_that_occurs_before_a_character,_otherwise_return_an_empty_string,_when_traversing_right_to_left.">Return the string that occurs before a character, otherwise return an empty string, when traversing right to left.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#beforer-3">beforer/3</a></td><td>
<h4><a name="Return_the_string_that_occurs_before_a_character,_otherwise_return_based_on_the_failure_atom,_when_traversing_right_to_left.">Return the string that occurs before a character, otherwise return based on the failure atom, when traversing right to left.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#binary_to_term-1">binary_to_term/1</a></td><td>
<h4><a name="Convert_a_binary_string_to_an_Erlang_term.">Convert a binary string to an Erlang term.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#compare_constant-2">compare_constant/2</a></td><td>
<h4><a name="Time_insensitive_compare_to_avoid_a_timing_leak.">Time insensitive compare to avoid a timing leak.</a></h4>
Use for password or other authentication comparisons.</td></tr>
<tr><td valign="top"><a href="#compare_constant_binary-2">compare_constant_binary/2</a></td><td>
<h4><a name="Time_insensitive_compare_to_avoid_a_timing_leak_with_strings_as_binaries.">Time insensitive compare to avoid a timing leak with strings as binaries.</a></h4>
Use for password or other authentication comparisons.</td></tr>
<tr><td valign="top"><a href="#compare_constant_list-2">compare_constant_list/2</a></td><td>
<h4><a name="Time_insensitive_compare_to_avoid_a_timing_leak_with_strings_as_lists.">Time insensitive compare to avoid a timing leak with strings as lists.</a></h4>
Use for password or other authentication comparisons.</td></tr>
<tr><td valign="top"><a href="#findl-2">findl/2</a></td><td>
<h4><a name="Find_the_beginning_of_a_substring_in_a_string_from_the_left.">Find the beginning of a substring in a string from the left.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#findr-2">findr/2</a></td><td>
<h4><a name="Find_the_beginning_of_a_substring_in_a_string_from_the_right.">Find the beginning of a substring in a string from the right.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#format-2">format/2</a></td><td>
<h4><a name="Format_a_string_based_on_the_arguments.">Format a string based on the arguments.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#format_to_binary-2">format_to_binary/2</a></td><td>
<h4><a name="Format_a_string_based_on_the_arguments,_stored_as_a_binary.">Format a string based on the arguments, stored as a binary.</a></h4>
Output is a utf8 encoded binary.</td></tr>
<tr><td valign="top"><a href="#format_to_list-2">format_to_list/2</a></td><td>
<h4><a name="Format_a_string_based_on_the_arguments,_stored_as_a_list.">Format a string based on the arguments, stored as a list.</a></h4>
Output may include unicode characters with a numerical value greater
than 255 (preventing the output from being used directly with
erlang:iolist_to_binary/1)..</td></tr>
<tr><td valign="top"><a href="#join-2">join/2</a></td><td>
<h4><a name="Join_a_list_of_strings_with_a_string.">Join a list of strings with a string.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#list_to_term-1">list_to_term/1</a></td><td>
<h4><a name="Convert_a_string_to_an_Erlang_term.">Convert a string to an Erlang term.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#lowercase-1">lowercase/1</a></td><td>
<h4><a name="Return_the_string_in_lowercase.">Return the string in lowercase.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#split-2">split/2</a></td><td>
<h4><a name="Split_the_string_at_all_occurrences_of_the_search_pattern.">Split the string at all occurrences of the search pattern.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#splitl-2">splitl/2</a></td><td>
<h4><a name="Return_the_two_strings_split_at_the_first_occurrence_of_the_character,_otherwise_return_an_empty_string,_when_traversing_left_to_right.">Return the two strings split at the first occurrence of the character, otherwise return an empty string, when traversing left to right.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#splitl-3">splitl/3</a></td><td>
<h4><a name="Return_the_two_strings_split_at_the_first_occurrence_of_the_character,_otherwise_return_based_on_the_failure_atom,_when_traversing_left_to_right.">Return the two strings split at the first occurrence of the character, otherwise return based on the failure atom, when traversing left to right.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#splitr-2">splitr/2</a></td><td>
<h4><a name="Return_the_two_strings_split_at_the_first_occurrence_of_the_character,_otherwise_return_an_empty_string,_when_traversing_right_to_left.">Return the two strings split at the first occurrence of the character, otherwise return an empty string, when traversing right to left.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#splitr-3">splitr/3</a></td><td>
<h4><a name="Return_the_two_strings_split_at_the_first_occurrence_of_the_character,_otherwise_return_based_on_the_failure_atom,_when_traversing_right_to_left.">Return the two strings split at the first occurrence of the character, otherwise return based on the failure atom, when traversing right to left.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#term_to_binary-1">term_to_binary/1</a></td><td>
<h4><a name="Convert_an_Erlang_term_to_a_binary_string.">Convert an Erlang term to a binary string.</a></h4>
Output is a utf8 encoded binary.</td></tr>
<tr><td valign="top"><a href="#term_to_binary_compact-1">term_to_binary_compact/1</a></td><td>
<h4><a name="Convert_an_Erlang_term_to_a_compact_binary_string.">Convert an Erlang term to a compact binary string.</a></h4>
Output is a utf8 encoded binary.</td></tr>
<tr><td valign="top"><a href="#term_to_list-1">term_to_list/1</a></td><td>
<h4><a name="Convert_an_Erlang_term_to_a_string.">Convert an Erlang term to a string.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#term_to_list_compact-1">term_to_list_compact/1</a></td><td>
<h4><a name="Convert_an_Erlang_term_to_a_compact_string.">Convert an Erlang term to a compact string.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#titlecase-1">titlecase/1</a></td><td>
<h4><a name="Return_the_string_in_titlecase.">Return the string in titlecase.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#trim-1">trim/1</a></td><td>
<h4><a name="Trim_the_edges_of_the_string.">Trim the edges of the string.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#trim-2">trim/2</a></td><td>
<h4><a name="Trim_the_edges_of_the_string.">Trim the edges of the string.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#triml-1">triml/1</a></td><td>
<h4><a name="Trim_the_edges_of_the_string_from_the_left.">Trim the edges of the string from the left.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#triml-2">triml/2</a></td><td>
<h4><a name="Trim_the_edges_of_the_string_from_the_left.">Trim the edges of the string from the left.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#trimr-1">trimr/1</a></td><td>
<h4><a name="Trim_the_edges_of_the_string_from_the_right.">Trim the edges of the string from the right.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#trimr-2">trimr/2</a></td><td>
<h4><a name="Trim_the_edges_of_the_string_from_the_right.">Trim the edges of the string from the right.</a></h4>.</td></tr>
<tr><td valign="top"><a href="#uppercase-1">uppercase/1</a></td><td>
<h4><a name="Return_the_string_in_uppercase.">Return the string in uppercase.</a></h4>.</td></tr>
</table>
<h2><a name="functions">Function Details</a></h2>
<h3 class="function"><a name="afterl-2">afterl/2</a></h3>
<div class="spec">
<p><tt>afterl(Char::non_neg_integer(), Input::string()) -&gt; string()</tt><br></p>
</div><p>
<h4><a name="Return_the_string_that_occurs_after_a_character,_otherwise_return_an_empty_string,_when_traversing_left_to_right.">Return the string that occurs after a character, otherwise return an empty string, when traversing left to right.</a></h4>
</p>
<h3 class="function"><a name="afterl-3">afterl/3</a></h3>
<div class="spec">
<p><tt>afterl(Char::non_neg_integer(), Input::string(), X3::empty | input) -&gt; string()</tt><br></p>
</div><p>
<h4><a name="Return_the_string_that_occurs_after_a_character,_otherwise_return_based_on_the_failure_atom,_when_traversing_left_to_right.">Return the string that occurs after a character, otherwise return based on the failure atom, when traversing left to right.</a></h4>
</p>
<h3 class="function"><a name="afterr-2">afterr/2</a></h3>
<div class="spec">
<p><tt>afterr(Char::non_neg_integer(), Input::string()) -&gt; string()</tt><br></p>
</div><p>
<h4><a name="Return_the_string_that_occurs_after_a_character,_otherwise_return_an_empty_string,_when_traversing_right_to_left.">Return the string that occurs after a character, otherwise return an empty string, when traversing right to left.</a></h4>
</p>
<h3 class="function"><a name="afterr-3">afterr/3</a></h3>
<div class="spec">
<p><tt>afterr(Char::non_neg_integer(), Input::string(), X3::empty | input) -&gt; string()</tt><br></p>
</div><p>
<h4><a name="Return_the_string_that_occurs_after_a_character,_otherwise_return_based_on_the_failure_atom,_when_traversing_right_to_left.">Return the string that occurs after a character, otherwise return based on the failure atom, when traversing right to left.</a></h4>
</p>
<h3 class="function"><a name="beforel-2">beforel/2</a></h3>
<div class="spec">
<p><tt>beforel(Char::non_neg_integer(), Input::string()) -&gt; string()</tt><br></p>
</div><p>
<h4><a name="Return_the_string_that_occurs_before_a_character,_otherwise_return_an_empty_string,_when_traversing_left_to_right.">Return the string that occurs before a character, otherwise return an empty string, when traversing left to right.</a></h4>
</p>
<h3 class="function"><a name="beforel-3">beforel/3</a></h3>
<div class="spec">
<p><tt>beforel(Char::non_neg_integer(), Input::string(), X3::empty | input) -&gt; string()</tt><br></p>
</div><p>
<h4><a name="Return_the_string_that_occurs_before_a_character,_otherwise_return_based_on_the_failure_atom,_when_traversing_left_to_right.">Return the string that occurs before a character, otherwise return based on the failure atom, when traversing left to right.</a></h4>
</p>
<h3 class="function"><a name="beforer-2">beforer/2</a></h3>
<div class="spec">
<p><tt>beforer(Char::non_neg_integer(), Input::string()) -&gt; string()</tt><br></p>
</div><p>
<h4><a name="Return_the_string_that_occurs_before_a_character,_otherwise_return_an_empty_string,_when_traversing_right_to_left.">Return the string that occurs before a character, otherwise return an empty string, when traversing right to left.</a></h4>
</p>
<h3 class="function"><a name="beforer-3">beforer/3</a></h3>
<div class="spec">
<p><tt>beforer(Char::non_neg_integer(), Input::string(), X3::empty | input) -&gt; string()</tt><br></p>
</div><p>
<h4><a name="Return_the_string_that_occurs_before_a_character,_otherwise_return_based_on_the_failure_atom,_when_traversing_right_to_left.">Return the string that occurs before a character, otherwise return based on the failure atom, when traversing right to left.</a></h4>
</p>
<h3 class="function"><a name="binary_to_term-1">binary_to_term/1</a></h3>
<div class="spec">
<p><tt>binary_to_term(B::binary()) -&gt; any()</tt><br></p>
</div><p>
<h4><a name="Convert_a_binary_string_to_an_Erlang_term.">Convert a binary string to an Erlang term.</a></h4>
</p>
<h3 class="function"><a name="compare_constant-2">compare_constant/2</a></h3>
<div class="spec">
<p><tt>compare_constant(Test::string(), Correct::nonempty_string()) -&gt; boolean()</tt><br></p>
</div><p>
<h4><a name="Time_insensitive_compare_to_avoid_a_timing_leak.">Time insensitive compare to avoid a timing leak.</a></h4>
Use for password or other authentication comparisons.
Execution time is based on the length of Test.</p>
<h3 class="function"><a name="compare_constant_binary-2">compare_constant_binary/2</a></h3>
<div class="spec">
<p><tt>compare_constant_binary(Test::binary(), Correct::binary()) -&gt; boolean()</tt><br></p>
</div><p>
<h4><a name="Time_insensitive_compare_to_avoid_a_timing_leak_with_strings_as_binaries.">Time insensitive compare to avoid a timing leak with strings as binaries.</a></h4>
Use for password or other authentication comparisons.
Execution time is based on the length of Test.</p>
<h3 class="function"><a name="compare_constant_list-2">compare_constant_list/2</a></h3>
<div class="spec">
<p><tt>compare_constant_list(Test::string(), Correct::nonempty_string()) -&gt; boolean()</tt><br></p>
</div><p>
<h4><a name="Time_insensitive_compare_to_avoid_a_timing_leak_with_strings_as_lists.">Time insensitive compare to avoid a timing leak with strings as lists.</a></h4>
Use for password or other authentication comparisons.
Execution time is based on the length of Test.</p>
<h3 class="function"><a name="findl-2">findl/2</a></h3>
<div class="spec">
<p><tt>findl(SearchPattern::string() | binary(), String::string() | binary()) -&gt; string() | binary() | false</tt><br></p>
</div><p>
<h4><a name="Find_the_beginning_of_a_substring_in_a_string_from_the_left.">Find the beginning of a substring in a string from the left.</a></h4>
</p>
<h3 class="function"><a name="findr-2">findr/2</a></h3>
<div class="spec">
<p><tt>findr(SearchPattern::string() | binary(), String::string() | binary()) -&gt; string() | binary() | false</tt><br></p>
</div><p>
<h4><a name="Find_the_beginning_of_a_substring_in_a_string_from_the_right.">Find the beginning of a substring in a string from the right.</a></h4>
</p>
<h3 class="function"><a name="format-2">format/2</a></h3>
<div class="spec">
<p><tt>format(L::string(), A::list()) -&gt; string()</tt><br></p>
</div><p>
<h4><a name="Format_a_string_based_on_the_arguments.">Format a string based on the arguments.</a></h4>
</p>
<h3 class="function"><a name="format_to_binary-2">format_to_binary/2</a></h3>
<div class="spec">
<p><tt>format_to_binary(L::string(), A::list()) -&gt; binary()</tt><br></p>
</div><p>
<h4><a name="Format_a_string_based_on_the_arguments,_stored_as_a_binary.">Format a string based on the arguments, stored as a binary.</a></h4>
Output is a utf8 encoded binary.</p>
<h3 class="function"><a name="format_to_list-2">format_to_list/2</a></h3>
<div class="spec">
<p><tt>format_to_list(L::string(), A::list()) -&gt; string()</tt><br></p>
</div><p>
<h4><a name="Format_a_string_based_on_the_arguments,_stored_as_a_list.">Format a string based on the arguments, stored as a list.</a></h4>
Output may include unicode characters with a numerical value greater
than 255 (preventing the output from being used directly with
erlang:iolist_to_binary/1)..</p>
<h3 class="function"><a name="join-2">join/2</a></h3>
<div class="spec">
<p><tt>join(Delimiters::string() | binary(), L::[string() | binary()]) -&gt; string() | binary()</tt><br></p>
</div><p>
<h4><a name="Join_a_list_of_strings_with_a_string.">Join a list of strings with a string.</a></h4>
</p>
<h3 class="function"><a name="list_to_term-1">list_to_term/1</a></h3>
<div class="spec">
<p><tt>list_to_term(L::string()) -&gt; any()</tt><br></p>
</div><p>
<h4><a name="Convert_a_string_to_an_Erlang_term.">Convert a string to an Erlang term.</a></h4>
</p>
<h3 class="function"><a name="lowercase-1">lowercase/1</a></h3>
<div class="spec">
<p><tt>lowercase(String::string() | binary()) -&gt; string() | binary()</tt><br></p>
</div><p>
<h4><a name="Return_the_string_in_lowercase.">Return the string in lowercase.</a></h4>
</p>
<h3 class="function"><a name="split-2">split/2</a></h3>
<div class="spec">
<p><tt>split(SearchPattern::string() | binary() | [string() | binary()], String::string() | binary()) -&gt; [string() | binary()]</tt><br></p>
</div><p>
<h4><a name="Split_the_string_at_all_occurrences_of_the_search_pattern.">Split the string at all occurrences of the search pattern.</a></h4>
</p>
<h3 class="function"><a name="splitl-2">splitl/2</a></h3>
<div class="spec">
<p><tt>splitl(Char::non_neg_integer(), Input::string()) -&gt; {string(), string()}</tt><br></p>
</div><p>
<h4><a name="Return_the_two_strings_split_at_the_first_occurrence_of_the_character,_otherwise_return_an_empty_string,_when_traversing_left_to_right.">Return the two strings split at the first occurrence of the character, otherwise return an empty string, when traversing left to right.</a></h4>
</p>
<h3 class="function"><a name="splitl-3">splitl/3</a></h3>
<div class="spec">
<p><tt>splitl(Char::non_neg_integer(), Input::string(), X3::empty | input) -&gt; {string(), string()}</tt><br></p>
</div><p>
<h4><a name="Return_the_two_strings_split_at_the_first_occurrence_of_the_character,_otherwise_return_based_on_the_failure_atom,_when_traversing_left_to_right.">Return the two strings split at the first occurrence of the character, otherwise return based on the failure atom, when traversing left to right.</a></h4>
</p>
<h3 class="function"><a name="splitr-2">splitr/2</a></h3>
<div class="spec">
<p><tt>splitr(Char::non_neg_integer(), Input::string()) -&gt; {string(), string()}</tt><br></p>
</div><p>
<h4><a name="Return_the_two_strings_split_at_the_first_occurrence_of_the_character,_otherwise_return_an_empty_string,_when_traversing_right_to_left.">Return the two strings split at the first occurrence of the character, otherwise return an empty string, when traversing right to left.</a></h4>
</p>
<h3 class="function"><a name="splitr-3">splitr/3</a></h3>
<div class="spec">
<p><tt>splitr(Char::non_neg_integer(), Input::string(), X3::empty | input) -&gt; {string(), string()}</tt><br></p>
</div><p>
<h4><a name="Return_the_two_strings_split_at_the_first_occurrence_of_the_character,_otherwise_return_based_on_the_failure_atom,_when_traversing_right_to_left.">Return the two strings split at the first occurrence of the character, otherwise return based on the failure atom, when traversing right to left.</a></h4>
</p>
<h3 class="function"><a name="term_to_binary-1">term_to_binary/1</a></h3>
<div class="spec">
<p><tt>term_to_binary(T::any()) -&gt; binary()</tt><br></p>
</div><p>
<h4><a name="Convert_an_Erlang_term_to_a_binary_string.">Convert an Erlang term to a binary string.</a></h4>
Output is a utf8 encoded binary.</p>
<h3 class="function"><a name="term_to_binary_compact-1">term_to_binary_compact/1</a></h3>
<div class="spec">
<p><tt>term_to_binary_compact(T::any()) -&gt; binary()</tt><br></p>
</div><p>
<h4><a name="Convert_an_Erlang_term_to_a_compact_binary_string.">Convert an Erlang term to a compact binary string.</a></h4>
Output is a utf8 encoded binary.</p>
<h3 class="function"><a name="term_to_list-1">term_to_list/1</a></h3>
<div class="spec">
<p><tt>term_to_list(T::any()) -&gt; string()</tt><br></p>
</div><p>
<h4><a name="Convert_an_Erlang_term_to_a_string.">Convert an Erlang term to a string.</a></h4>
</p>
<h3 class="function"><a name="term_to_list_compact-1">term_to_list_compact/1</a></h3>
<div class="spec">
<p><tt>term_to_list_compact(T::any()) -&gt; string()</tt><br></p>
</div><p>
<h4><a name="Convert_an_Erlang_term_to_a_compact_string.">Convert an Erlang term to a compact string.</a></h4>
</p>
<h3 class="function"><a name="titlecase-1">titlecase/1</a></h3>
<div class="spec">
<p><tt>titlecase(String::string() | binary()) -&gt; string() | binary()</tt><br></p>
</div><p>
<h4><a name="Return_the_string_in_titlecase.">Return the string in titlecase.</a></h4>
</p>
<h3 class="function"><a name="trim-1">trim/1</a></h3>
<div class="spec">
<p><tt>trim(String::string() | binary()) -&gt; string() | binary()</tt><br></p>
</div><p>
<h4><a name="Trim_the_edges_of_the_string.">Trim the edges of the string.</a></h4>
</p>
<h3 class="function"><a name="trim-2">trim/2</a></h3>
<div class="spec">
<p><tt>trim(Characters::string() | [string()], String::string() | binary()) -&gt; string() | binary()</tt><br></p>
</div><p>
<h4><a name="Trim_the_edges_of_the_string.">Trim the edges of the string.</a></h4>
</p>
<h3 class="function"><a name="triml-1">triml/1</a></h3>
<div class="spec">
<p><tt>triml(String::string() | binary()) -&gt; string() | binary()</tt><br></p>
</div><p>
<h4><a name="Trim_the_edges_of_the_string_from_the_left.">Trim the edges of the string from the left.</a></h4>
</p>
<h3 class="function"><a name="triml-2">triml/2</a></h3>
<div class="spec">
<p><tt>triml(Characters::string() | [string()], String::string() | binary()) -&gt; string() | binary()</tt><br></p>
</div><p>
<h4><a name="Trim_the_edges_of_the_string_from_the_left.">Trim the edges of the string from the left.</a></h4>
</p>
<h3 class="function"><a name="trimr-1">trimr/1</a></h3>
<div class="spec">
<p><tt>trimr(String::string() | binary()) -&gt; string() | binary()</tt><br></p>
</div><p>
<h4><a name="Trim_the_edges_of_the_string_from_the_right.">Trim the edges of the string from the right.</a></h4>
</p>
<h3 class="function"><a name="trimr-2">trimr/2</a></h3>
<div class="spec">
<p><tt>trimr(Characters::string() | [string()], String::string() | binary()) -&gt; string() | binary()</tt><br></p>
</div><p>
<h4><a name="Trim_the_edges_of_the_string_from_the_right.">Trim the edges of the string from the right.</a></h4>
</p>
<h3 class="function"><a name="uppercase-1">uppercase/1</a></h3>
<div class="spec">
<p><tt>uppercase(String::string() | binary()) -&gt; string() | binary()</tt><br></p>
</div><p>
<h4><a name="Return_the_string_in_uppercase.">Return the string in uppercase.</a></h4>
</p>
<hr>
<div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
<p><i>Generated by EDoc</i></p>
</body>
</html>