Class: String
Lua
C++
Edit

String::Trim

This method removes whitespace characters from the beginning and end of the string and returns the result.

Syntax

Returns

Returns the string with whitespace characters removed from the beginning and end.

Example

#include "UltraEngine.h"

using namespace UltraEngine;

int main(int argc, const char* argv[])
{
    String s = "    Hello!  ";
    Print("\"" + s.Trim() + "\"");

    return 0;
}
Copyright © 2024 Ultra Software.
All rights reserved.