MQL4参考 字符串函数 StringTrimLeft

StringTrimLeft

The function cuts line feed characters, spaces and tabs in the left part of the string till the first meaningful symbol. The string is modified at place.

string  StringTrimLeft(
   const string  text      // string to cut
   );

Parameters

text

[in]  String that will be cut from the left.

Return Value

A copy of the cut string if possible, otherwise an empty string.

Example:

  string str1="  Hello world   ";
  string str2=StringTrimLeft(str1);
  // after left trim str2 will be equal to "Hello World   "