API Reference > Other Classes > OdAnsiString Class
OdAnsiString Class
OdAnsiString
Syntax
C++
class OdAnsiString;

OdAnsiString.h

This class implements single-byte character string objects in the ODA Platform.

OdAnsiString objects use zero-based indices to access string elements. 

 

 
Name 
Description 
 
This is ~OdAnsiString, a member of class OdAnsiString. 
 
This is the overview for the OdAnsiString constructor overload. 
 
Name 
Description 
 
Returns the underlying char array (buffer) of this String object. 
 
This is codepage, a member of class OdAnsiString. 
 
MBCS/Unicode aware 
 
Deletes the specified number characters from this String object.
 
 
Sets this String object to the empty string. 
 
find 
This is the overview for the find method overload. 
 
Returns the first occurrence in this String object of any member of the specified character set.
 
 
Assigns a value to this String object using a printf-style format string and arguments.  
 
Assigns a value to this String object using a vsprintf-style format string and argument list.  
 
Releases any unused memory allocated by this String object. 
 
Returns the number of characters allocated for the underlying char array (buffer) in this String object. 
 
Returns the single character of this String object at the specified position.  
 
Returns a modifiable C style char array (buffer) of the specified minimum length for this String object.  
 
Returns a modifiable C style char array (buffer) of of the specified length for this String object.  
 
Returns the number of characters in this String object. 
 
Case insensitive string comparison.
 
 
This is the overview for the insert method overload. 
 
Returns true and only if this String object is empty. 
 
left 
Returns the leftmost substring of the specified length from this String object.  
 
Enables reference counting for this String object. 
 
Converts this String object to lower case. 
 
Reverses this String object. 
 
Converts this String object to upper case. 
 
mid 
This is the overview for the mid method overload. 
 
Releases a buffer obtained by getBuffer() or getBufferSetLength(), and sets its length.  
 
Removes all occurrences of the specified character from this String object.
 
 
This is the overview for the replace method overload. 
 
Returns the last occurrence of the specified character in this String object.
 
 
Returns the rightmost substring of the specified length from this String object.  
 
Sets the single character of this String object at the specified position.  
 
This is setCodepage, a member of class OdAnsiString. 
 
Returns the longest leftmost substring of this String object that consists solely of characters that are not contained in the specified character set.
 
 
Returns the longest leftmost substring of this String object that consists solely of characters that are contained in the specified character set.
 
 
This is the overview for the trimLeft method overload. 
 
This is the overview for the trimRight method overload. 
 
Disables reference counting for this String object. 
 
Name 
Description 
 
[] 
Indexing Operator 
 
+= 
This is the overview for the += operator overload. 
 
= 
This is the overview for the = operator overload. 
 
Returns the underlying char array (buffer) of this String object. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.