Base: apply clang format
This commit is contained in:
@@ -33,9 +33,9 @@
|
||||
|
||||
|
||||
XERCES_CPP_NAMESPACE_BEGIN
|
||||
class DOMNode;
|
||||
class DOMElement;
|
||||
class DOMDocument;
|
||||
class DOMNode;
|
||||
class DOMElement;
|
||||
class DOMDocument;
|
||||
XERCES_CPP_NAMESPACE_END
|
||||
|
||||
// Helper class
|
||||
@@ -58,16 +58,16 @@ private:
|
||||
|
||||
class StrX
|
||||
{
|
||||
public :
|
||||
public:
|
||||
StrX(const XMLCh* const toTranscode);
|
||||
~StrX();
|
||||
|
||||
/// Getter method
|
||||
const char* c_str() const;
|
||||
|
||||
private :
|
||||
private:
|
||||
// This is the local code page form of the string.
|
||||
char* fLocalForm;
|
||||
char* fLocalForm;
|
||||
};
|
||||
|
||||
inline std::ostream& operator<<(std::ostream& target, const StrX& toDump)
|
||||
@@ -103,13 +103,13 @@ inline const char* StrX::c_str() const
|
||||
|
||||
class StrXUTF8
|
||||
{
|
||||
public :
|
||||
public:
|
||||
StrXUTF8(const XMLCh* const toTranscode);
|
||||
|
||||
/// Getter method
|
||||
const char* c_str() const;
|
||||
/// string which holds the UTF-8 form
|
||||
std::string str;
|
||||
std::string str;
|
||||
};
|
||||
|
||||
inline std::ostream& operator<<(std::ostream& target, const StrXUTF8& toDump)
|
||||
@@ -140,7 +140,7 @@ inline const char* StrXUTF8::c_str() const
|
||||
|
||||
class XStr
|
||||
{
|
||||
public :
|
||||
public:
|
||||
/// Constructors and Destructor
|
||||
XStr(const char* const toTranscode);
|
||||
///
|
||||
@@ -150,9 +150,9 @@ public :
|
||||
/// Getter method
|
||||
const XMLCh* unicodeForm() const;
|
||||
|
||||
private :
|
||||
private:
|
||||
/// This is the Unicode XMLCh format of the string.
|
||||
XMLCh* fUnicodeForm;
|
||||
XMLCh* fUnicodeForm;
|
||||
};
|
||||
|
||||
|
||||
@@ -182,15 +182,15 @@ inline const XMLCh* XStr::unicodeForm() const
|
||||
|
||||
class XUTF8Str
|
||||
{
|
||||
public :
|
||||
public:
|
||||
XUTF8Str(const char* const fromTranscode);
|
||||
~XUTF8Str();
|
||||
|
||||
/// Getter method
|
||||
const XMLCh* unicodeForm() const;
|
||||
|
||||
private :
|
||||
std::basic_string<XMLCh> str;
|
||||
private:
|
||||
std::basic_string<XMLCh> str;
|
||||
};
|
||||
|
||||
inline XUTF8Str::XUTF8Str(const char* const fromTranscode)
|
||||
@@ -209,4 +209,4 @@ inline const XMLCh* XUTF8Str::unicodeForm() const
|
||||
return str.c_str();
|
||||
}
|
||||
|
||||
#endif // BASE_XMLTOOLS_H
|
||||
#endif // BASE_XMLTOOLS_H
|
||||
|
||||
Reference in New Issue
Block a user