The OpenD Programming Language

arsd.string

String manipulation functions.

Members

Aliases

endsWith
alias endsWith = arsd.core.endsWith
indexOf
alias indexOf = arsd.core.indexOf

Public interface to arsd.core

startsWith
alias startsWith = arsd.core.startsWith

Public interface to arsd.core

strip
alias strip = arsd.core.stripInternal
stripRight
alias stripRight = arsd.core.stripInternal
trim
alias trim = strip
trimRight
alias trimRight = stripRight

Strips (aka trims) leading and/or trailing whitespace from the string.

See Also

To get a substring, you can use the built-in array slice operator.

For reading various encodings into a standard string, see arsd.characterencodings.

For converting things to and from strings, see arsd.conv.

For sorting an array of strings, see... std.algorithm for now but maybe here later.

Meta

History

Added May 23, 2025