ll.StringTrim

ll.StringTrim(Text: string, TrimType: number) : string

Outputs a string, eliminating white-space from the start and/or end of the input string Text. Valid options for TrimType: STRING_TRIM_HEAD: trim all leading spaces in Text STRING_TRIM_TAIL: trim all trailing spaces in Text STRING_TRIM: trim all leading and trailing spaces in Text.

Example

ll.StringTrim('test', 6)
{
  "def": "func",
  "desc": "Outputs a string, eliminating white-space from the start and/or end of the input string Text.\nValid options for TrimType:\nSTRING_TRIM_HEAD: trim all leading spaces in Text\nSTRING_TRIM_TAIL: trim all trailing spaces in Text\nSTRING_TRIM: trim all leading and trailing spaces in Text.",
  "energy": 10,
  "sleep": 0,
  "pure": true,
  "link": "https://wiki.secondlife.com/wiki/LlStringTrim",
  "name": "StringTrim",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "string"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Text",
          "desc": "String to trim",
          "type": [
            "string"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "TrimType",
          "desc": "STRING_TRIM_HEAD, STRING_TRIM_TAIL, or STRING_TRIM.",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll