Class: String
Lua
C++
Edit

String::Left

This method returns the leftmost characters of the string.

Syntax

Parameter Description
length maximum number of characters to return

Returns

Returns the leftmost characters of the string. If the count parameter is equal to or greater than the length of the string, the entire string is returned.

Example

#include "UltraEngine.h"

using namespace UltraEngine;

int main(int argc, const char* argv[])
{
    String s = "Hello, how are you today?";
    Print(s.Left(5));

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