This method returns the leftmost characters of the string.
Parameter | Description |
---|---|
length | maximum number of characters to return |
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.
#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;
}