#include <string.h>
Class to store the position after the last character at the end of a string.
Here an example for GetPart. The first parameter of GetPart is the class StringPosition , the second StringCount .
res = str.GetPart(4, StringEnd ()); // copy from position four on until the end of the string
公共成员函数 |
|
StringEnd () | |
StringEnd ( Int value) | |
![]() |
|
MAXON_IMPLICIT | StringPosition ( Int pos) |
MAXON_ATTRIBUTE_FORCE_INLINE Int | ResolvePosition ( Int length) const |
Additional Inherited Members |
|
![]() |
|
Int | _value |
StringEnd | ( | ) |
Constructor.
|
explicit |
Constructor for a position from the end. Other than the class StringPosition StringEnd allows you to refer to the position after the last character.
[in] | value | The (negative) position from the end or 0 for the string end (the position after the last character). |