(svn r19134) -Fix (r16983, r17219): YAPF debug output was quite broken.

This commit is contained in:
frosch
2010-02-14 18:33:57 +00:00
parent 88aae13b35
commit c10e26137e
3 changed files with 39 additions and 7 deletions

View File

@@ -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
{