StringEnd Class Reference 系统

#include <string.h>

Inheritance diagram for StringEnd:

详细描述

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
res = str.GetPart(-4, StringEnd ()); // copy from the position that is four characters from the end of the string until the end of the string

公共成员函数

  StringEnd ()
  StringEnd ( Int value)
-  Public Member Functions inherited from StringPosition
MAXON_IMPLICIT   StringPosition ( Int pos)
MAXON_ATTRIBUTE_FORCE_INLINE Int   ResolvePosition ( Int length) const

Additional Inherited Members

-  Protected Attributes inherited from StringPosition
Int   _value

构造函数 & 析构函数文档编制

◆  StringEnd() [1/2]

StringEnd ( )

Constructor.

◆  StringEnd() [2/2]

StringEnd ( Int   value )
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).
maxon::StringEnd::StringEnd
StringEnd()
Constructor.
定义: string.h:122