endsWithSeparator

Checks if the given region ends with the given separator.

  1. size_t endsWithSeparator(const(T)[] region, Separator separator)
  2. size_t endsWithSeparator(const(T)[] region, Separator sep)
    size_t
    endsWithSeparator
    (
    T
    Separator
    )
    (
    const(T)[] region
    ,
    Separator sep
    )
    if (
    isBidirectionalRange!Separator &&
    is(typeof(T.init == sep.back.init) : bool)
    )

Return Value

Type: size_t

The number of elements that match.

Meta