StringSetCharacter
Returns copy of a string with a changed character in a specified position.
bool StringSetCharacter( |
Parameters
string_var
[in][out] String.
pos
[in] Position of a character in a string. Can be from 0 to StringLen(text).
character
[in] Symbol code Unicode.
Note
If pos is less than string length and the symbol code value = 0, the string is cut off (but the buffer size, distributed for the stringremains unchanged). The string length becomes equal to pos.
If pos is equal to string length, the specified symbol is added at the string end, and the length is enlarged by one.
Example:
void OnStart() |
See also
StringBufferLen, StringLen, StringFill, StringInit
© 2000-2010, MetaQuotes Software Corp.