View Source Bonfire.Common.TextExtended (Bonfire v0.9.10-classic-beta.169)

Summary

Functions

Returns the length of the input based on its type.

Functions

Returns the length of the input based on its type.

Examples

iex> strlen("hello")
5

iex> strlen([1, 2, 3])
3

iex> strlen(%{})
0

iex> strlen(nil)
0

iex> strlen(0)
0

iex> strlen(123)
1

See Bonfire.Common.Text.camelise/1.

See Bonfire.Common.Text.code_syntax/2.

See Bonfire.Common.Text.contains?/2.

See Bonfire.Common.Text.contains_html?/1.

See Bonfire.Common.Text.hash/1.

See Bonfire.Common.Text.hash/2.

See Bonfire.Common.Text.list_checkboxes/1.

See Bonfire.Common.Text.list_checked_boxes/1.

Link to this function

list_unchecked_boxes(xA)

View Source

See Bonfire.Common.Text.list_unchecked_boxes/1.

See Bonfire.Common.Text.markdown_checkboxes/1.

See Bonfire.Common.Text.maybe_emote/1.

See Bonfire.Common.Text.maybe_emote/2.

See Bonfire.Common.Text.maybe_emote/3.

Link to this function

maybe_markdown_to_html(xA)

View Source

See Bonfire.Common.Text.maybe_markdown_to_html/1.

Link to this function

maybe_markdown_to_html(xA, xB)

View Source

See Bonfire.Common.Text.maybe_markdown_to_html/2.

Link to this function

maybe_normalize_html(xA)

View Source

See Bonfire.Common.Text.maybe_normalize_html/1.

Link to this function

maybe_other_custom_emoji(xA, xB)

View Source

See Bonfire.Common.Text.maybe_other_custom_emoji/2.

Link to this function

maybe_render_templated(xA, xB)

View Source

See Bonfire.Common.Text.maybe_render_templated/2.

See Bonfire.Common.Text.maybe_sane_html/1.

See Bonfire.Common.Text.maybe_to_snake/1.

See Bonfire.Common.Text.normalise_links/1.

See Bonfire.Common.Text.normalise_links/2.

See Bonfire.Common.Text.random_string/0.

See Bonfire.Common.Text.random_string/1.

See Bonfire.Common.Text.regex_list/2.

See Bonfire.Common.Text.sentence_truncate/1.

Link to this function

sentence_truncate(xA, xB)

View Source

See Bonfire.Common.Text.sentence_truncate/2.

Link to this function

sentence_truncate(xA, xB, xC)

View Source

See Bonfire.Common.Text.sentence_truncate/3.

See Bonfire.Common.Text.slug/1.

See Bonfire.Common.Text.split_lines/1.

See Bonfire.Common.Text.strlen/1.

See Bonfire.Common.Text.text_only/1.

See Bonfire.Common.Text.truncate/1.

See Bonfire.Common.Text.truncate/2.

See Bonfire.Common.Text.truncate/3.

See Bonfire.Common.Text.underscore_truncate/1.

Link to this function

underscore_truncate(xA, xB)

View Source

See Bonfire.Common.Text.underscore_truncate/2.

See Bonfire.Common.Text.upcase_first/1.

See Bonfire.Common.Text.verb_infinitive/1.