MackeyRMS / string-util / StringUtil

caseInsensitiveContains : String -> String -> Basics.Bool

containsIgnoreCase : String -> String -> Basics.Bool

dasherize : String -> String

Return a string joined by dashes after separating it by its uppercase characters.

Any sequence of spaces or underscores will also be converted to a single dash. The final string will be lowercased.

dasherize "SomeClassName" == "-some-class-name"
dasherize "some\_class\_name" == "some-class-name"
dasherize "someClass name" == "some-class-name"

ellipsis : Basics.Int -> String -> String

humanize : String -> String

nonBreakingSpace : String

This is a non-shrinking space character

nonEmpty : String -> Maybe String

pluralize : String -> String -> Basics.Int -> String

present : String -> Basics.Bool

smartCaseContains : String -> String -> Basics.Bool

spacer : String

This is an empty char that has no width but a height

toTitleCase : String -> String

underscored : String -> String

I swiped this from elm-community/string-extra -- Chad Aug 26 2020

Return a string joined by underscores after separating it by its uppercase characters. Any sequence of spaces or dashes will also be converted to a single underscore. The final string will be lowercased.

underscored "SomeClassName" == "some\_class\_name"
underscored "some-class-name" == "some\_class\_name"
underscored "SomeClass name" == "some\_class\_name