Skip to content

CString

CString

CString is a class for simplified access to the variables of string type.

Description

CString class provides simplified access to MQL5 API functions working with string variables.

Declaration

class CString: public CObject

Title

#include <Strings\String.mqh>

Inheritance hierarchy

CObject

CString

Class Methods by Groups

Data access methods
StrGets a string
LenGets length of a string
CopyCopies a string copy
Fill methods
FillFills a string
AssignAssigns a string
AppendAppends a string
InsertInserts a string
Compare methods
CompareCompares strings
CompareNoCasePerforms a case insensitive string comparison
Substring methods
LeftGets a substring from the left
RightGets a substring from the right
MidGets a substring from the middle
Trim/delete methods
TrimTrims a string from the left and from the right
TrimLeftTrims a string from the left
TrimRightTrims a string from the right
ClearClears a string
Convert methods
ToUpperConverts a string to uppercase.
ToLowerConverts a string to lowercase.
ReverseReverses a string
Search methods
FindSearches a substring left to right
FindRevSearches a substring right to left
RemoveDeletes a substring
ReplaceReplaces a substring

Methods inherited from class CObject

: Prev, Prev, Next, Next, Save, Load, Type

Last updated on