2.5.4.113 Trim

The Trim function performs the removal of all whitespace from a string except for single spaces between words.

ABNF:

 Trim = val " TRIM():128"

Required Arguments:

Name: Arg1

Type: vString

An argument that specifies the string from which to remove whitespace.

Return Value:

Type: PtgStr1

This function returns a PtgStr1 containing the string with whitespace removed. The following Unicode characters are considered as whitespace.

Value

Meaning

"\u0009"

Character Tabulation

"\u000a"

Line Feed

"\u000b"

Line Tabulation

"\u000c"

Form Feed

"\u000d"

Carriage Return

"\u0020"

Space

"\u00a0"

No-Break Space

"\u1680"

Ogham Space Mark

"\u180e"

Mongolian Vowel Separator

"\u2000"

En Quad

"\u2001"

Em Quad

"\u2002"

En Space

"\u2003"

Em Space

"\u2004"

Three-Per-Em Space

"\u2005"

Four-Per-Em Space

"\u2006"

Six-Per-Em Space

"\u2007"

Figure Space

"\u2008"

Punctuation Space

"\u2009"

Thin Space

"\u200a"

Hair Space

"\u202f"

Narrow No-Break Space

"\u205f"

Medium Mathematical Space

"\u3000"

Ideographic Space