mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-27 05:50:12 +00:00
[libcxx] [test] Rename __c to ch. NFCI.
This improves readability and (theoretically) improves portability, as __ugly names are reserved. llvm-svn: 310759
This commit is contained in:
parent
aae63566dc
commit
55467c4685
@ -35,18 +35,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = str_.size();
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -35,18 +35,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -41,18 +41,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = str_.size();
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -38,18 +38,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -39,18 +39,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,18 +34,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,18 +34,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,18 +34,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,18 +34,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,18 +34,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,18 +34,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,18 +34,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,18 +34,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,18 +34,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,18 +34,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,18 +34,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,18 +34,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,18 +34,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -35,18 +35,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(__c);
|
||||
str_.push_back(ch);
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -35,18 +35,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(__c);
|
||||
str_.push_back(ch);
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -35,18 +35,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -35,18 +35,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -35,18 +35,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(__c);
|
||||
str_.push_back(ch);
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -35,18 +35,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(__c);
|
||||
str_.push_back(ch);
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -35,18 +35,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -35,18 +35,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -35,18 +35,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -35,18 +35,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -35,18 +35,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,18 +34,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -35,18 +35,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -41,18 +41,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -37,18 +37,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
|
||||
virtual int
|
||||
|
@ -35,18 +35,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -39,18 +39,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,18 +34,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -34,18 +34,18 @@ public:
|
||||
protected:
|
||||
|
||||
virtual typename base::int_type
|
||||
overflow(typename base::int_type __c = base::traits_type::eof())
|
||||
overflow(typename base::int_type ch = base::traits_type::eof())
|
||||
{
|
||||
if (__c != base::traits_type::eof())
|
||||
if (ch != base::traits_type::eof())
|
||||
{
|
||||
int n = static_cast<int>(str_.size());
|
||||
str_.push_back(static_cast<CharT>(__c));
|
||||
str_.push_back(static_cast<CharT>(ch));
|
||||
str_.resize(str_.capacity());
|
||||
base::setp(const_cast<CharT*>(str_.data()),
|
||||
const_cast<CharT*>(str_.data() + str_.size()));
|
||||
base::pbump(n+1);
|
||||
}
|
||||
return __c;
|
||||
return ch;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user