UtfString.extract

Static method to extract the next character from the passed string.

  1. OutType extract(bool consume)
  2. OutType extract(size_t width, bool consume)
  3. OutType extract(Char[] text)
  4. OutType extract(Char[] text, size_t width)
    struct UtfString(Char = char, bool pull_dchars = false)
    static
    static if(pull_dchars)
    extract
    (
    Char[] text
    ,
    out size_t width
    )
  5. OutType extract(Char[] text, size_t width)

Parameters

text Char[]

string to extract from

width size_t

outputs the width (in terms of the number of characters in the input string) of the extracted character

Return Value

Type: OutType

the extracted character, either as a dchar or a slice into the input string (depending on the pull_dchars template parameter).

Meta