(svn r19134) -Fix (r16983, r17219): YAPF debug output was quite broken.
This commit is contained in:
@@ -27,6 +27,12 @@ struct CStrA : public CBlobT<char>
|
||||
{
|
||||
}
|
||||
|
||||
/** Copy constructor */
|
||||
FORCEINLINE CStrA(const CStrA &src) : base(src)
|
||||
{
|
||||
base::FixTail();
|
||||
}
|
||||
|
||||
/** Take over ownership constructor */
|
||||
FORCEINLINE CStrA(const OnTransfer& ot)
|
||||
: base(ot)
|
||||
@@ -50,14 +56,34 @@ struct CStrA : public CBlobT<char>
|
||||
}
|
||||
}
|
||||
|
||||
/** Append another CStrA. */
|
||||
FORCEINLINE void Append(const CStrA &src)
|
||||
{
|
||||
if (src.RawSize() > 0) {
|
||||
base::AppendRaw(src);
|
||||
base::FixTail();
|
||||
}
|
||||
}
|
||||
|
||||
/** Assignment from C string. */
|
||||
FORCEINLINE CStrA& operator = (const char *src)
|
||||
FORCEINLINE CStrA &operator = (const char *src)
|
||||
{
|
||||
base::Clear();
|
||||
AppendStr(src);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/** Assignment from another CStrA. */
|
||||
FORCEINLINE CStrA &operator = (const CStrA &src)
|
||||
{
|
||||
if (&src != this) {
|
||||
base::Clear();
|
||||
base::AppendRaw(src);
|
||||
base::FixTail();
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
/** Lower-than operator (to support stl collections) */
|
||||
FORCEINLINE bool operator < (const CStrA &other) const
|
||||
{
|
||||
|
Reference in New Issue
Block a user