Class: WString
Lua
C++
Edit

WString::Trim

This method removes whitespace characters from the beginning and end of the wide 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[])
{
    WString s = "    Hello!  ";
    Print("\"" + s.Trim() + "\"");

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