Euclid v0.3.0
  • Pages
  • Modules

    View Source Euclid.String (Euclid v0.3.0)

    String-related functions

    Link to this section Summary

    Functions

    dasherize(atom)
    inner_truncate(s, max_length)
    secure_compare(left, right)

    Compares the two binaries in constant-time to avoid timing attacks. See: http://codahale.com/a-lesson-in-timing-attacks/

    squish(s)
    surround(s, surrounder)
    surround(s, prefix, suffix)
    to_integer(s)
    to_integer(s, arg2)
    trim(s)
    truncate_at(s, at, limit)
    underscore(atom)

    Link to this section Functions

    Link to this function

    dasherize(atom)

    View Source
    Link to this function

    inner_truncate(s, max_length)

    View Source
    Link to this function

    secure_compare(left, right)

    View Source

    Specs

    secure_compare(binary(), binary()) :: boolean()

    Compares the two binaries in constant-time to avoid timing attacks. See: http://codahale.com/a-lesson-in-timing-attacks/

    Link to this function

    squish(s)

    View Source
    Link to this function

    surround(s, surrounder)

    View Source
    Link to this function

    surround(s, prefix, suffix)

    View Source
    Link to this function

    to_integer(s)

    View Source
    Link to this function

    to_integer(s, arg2)

    View Source
    Link to this function

    trim(s)

    View Source
    Link to this function

    truncate_at(s, at, limit)

    View Source
    Link to this function

    underscore(atom)

    View Source

    On Hex.pm: Package Preview (current file)

    Built using ExDoc (v0.27.3) for the Elixir programming language