#
View Source Ash.CiString (ash v2.14.2)

Represents a case insensitive string

While some data layers are aware of case insensitive string types, in order for values of this type to be used in other parts of Ash Framework, it has to be embedded in a module this allows us to implement the `Comparable` protocol for it.

For the type implementation, see `Ash.Type.CiString`

# Link to this section Summary

## Types

t()

## Functions

compare(left, right)
new(value, casing \\ nil)
sigil_i(value, mods)

Creates a case insensitive string

to_comparable_string(value)

Returns the downcased value, only downcasing if it hasn't already been done

value(ci_string)

# Link to this section Types

Link to this type

# t()

View Source

    @type t() :: %Ash.CiString{
      case: nil | :lower | :upper,
      casted?: boolean(),
      string: String.t()
    }

# Link to this section Functions

Link to this function

# compare(left, right)

View Source
Link to this function

# new(value, casing \\ nil)

View Source
Link to this function

# sigil_i(value, mods)

View Source

Creates a case insensitive string

Link to this function

# to_comparable_string(value)

View Source

Returns the downcased value, only downcasing if it hasn't already been done

Link to this function

# value(ci_string)

View Source