locatePrior

Like std.string.indexOf, but with an optional 'start' parameter, and returns s.length when not found (instead of -1).

  1. size_t locatePrior(Char[] s, dchar c, size_t start, CaseSensitive cs)
  2. size_t locatePrior(Char1[] s, Char2[] sub, size_t start, CaseSensitive cs)
    size_t
    locatePrior
    (
    Char1
    Char2
    )
    (
    in Char1[] s
    ,
    in Char2[] sub
    ,
    size_t start = int.max
    ,
    CaseSensitive cs = CaseSensitive.yes
    )
  3. size_t locate(Char[] s, dchar c, size_t start, CaseSensitive cs)
  4. size_t locate(Char1[] s, Char2[] sub, size_t start, CaseSensitive cs)

Meta