Skip to content

StrEndsWith

Bool StrEndsWith(String findIn, String toFind, Bool ignoreCase = false)

System · system operation · implicitly imported

Checks whether a String ends with another String.

Parameters

  • String findIn — The String to check.
  • String toFind — The suffix to look for.
  • Bool ignoreCase = false — When true, the comparison ignores case.

Returns

Bool — true if findIn ends with toFind.

Errors

A runtime type error if findIn or toFind is not a String, or ignoreCase is not a Bool.

Examples

Bool b = StrEndsWith("model.dmla", ".dmla");

See Also