Commit 0ab1692d authored by Ole Christian Eidheim's avatar Ole Christian Eidheim
Browse files

Renamed clangmm::CString to clangmm::String, and also renamed its data member data to c_str

parent 27fd382e
......@@ -10,14 +10,14 @@ std::string clangmm::to_string(CXString cx_string) {
return string;
}
clangmm::CString::CString(const CXString &cx_string) : cx_string(cx_string) {
clangmm::String::String(const CXString &cx_string) : cx_string(cx_string) {
if(cx_string.data!=NULL)
data=clang_getCString(cx_string);
c_str=clang_getCString(cx_string);
else
data="";
c_str="";
}
clangmm::CString::~CString() {
clangmm::String::~String() {
if(cx_string.data!=NULL)
clang_disposeString(cx_string);
}
......
......@@ -6,12 +6,12 @@
namespace clangmm {
std::string to_string(CXString cx_string);
class CString {
class String {
public:
CString(const CXString &cx_string);
~CString();
String(const CXString &cx_string);
~String();
CXString cx_string;
const char *data;
const char *c_str;
};
void remove_include_guard(std::string &buffer);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment