clang 20.0.0git
Classes | Functions
String manipulation routines
Collaboration diagram for String manipulation routines:

Classes

struct  CXString
 A character string. More...
 
struct  CXStringSet
 

Functions

CINDEX_LINKAGE const char * clang_getCString (CXString string)
 Retrieve the character data associated with the given string.
 
CINDEX_LINKAGE void clang_disposeString (CXString string)
 Free the given string.
 
CINDEX_LINKAGE void clang_disposeStringSet (CXStringSet *set)
 Free the given string set.
 

Detailed Description

Function Documentation

◆ clang_disposeString()

CINDEX_LINKAGE void clang_disposeString ( CXString  string)

Free the given string.

◆ clang_disposeStringSet()

CINDEX_LINKAGE void clang_disposeStringSet ( CXStringSet set)

Free the given string set.

◆ clang_getCString()

CINDEX_LINKAGE const char * clang_getCString ( CXString  string)

Retrieve the character data associated with the given string.

The returned data is a reference and not owned by the user. This data is only valid while the CXString is valid. This function is similar to std::string::c_str().