Sese Framework
x.y.z
A cross-platform framework
|
字符串缓冲类 更多...
#include <AbstractStringBuffer.h>
Public 成员函数 | |
AbstractStringBuffer (size_t cap=STRING_BUFFER_SIZE_FACTOR) noexcept | |
AbstractStringBuffer (const char *str) noexcept | |
以字符串为初始化参数 | |
virtual | ~AbstractStringBuffer () noexcept |
AbstractStringBuffer (const AbstractStringBuffer &abstract_string_buffer) noexcept | |
AbstractStringBuffer (AbstractStringBuffer &&abstract_string_buffer) noexcept | |
virtual void | append (char ch) noexcept |
virtual void | append (const char *str) noexcept |
virtual void | append (const std::string &str) noexcept |
virtual void | append (const std::string_view &str) noexcept |
virtual void | append (const String &str) noexcept |
virtual void | append (const StringView &view) noexcept |
virtual void | append (const char *data, size_t len) noexcept |
virtual size_t | length () const noexcept |
virtual size_t | size () const noexcept |
virtual bool | empty () const noexcept |
virtual void | clear () noexcept |
virtual void | reverse () noexcept |
virtual char | getCharAt (int index) const |
virtual bool | setChatAt (int index, char ch) |
virtual bool | delCharAt (int index) |
virtual bool | del (int start, int l) |
virtual bool | insertAt (int index, const char *str) |
virtual bool | insertAt (int index, const std::string &str) |
virtual bool | insertAt (int index, const std::string_view &str) |
virtual bool | insertAt (int index, const String &str) |
virtual bool | insertAt (int index, const StringView &view) |
virtual void | trim () noexcept |
去除两端空格 | |
virtual std::vector< std::string > | split (const std::string_view &str) const noexcept |
virtual bool | startsWith (const std::string_view &prefix) const noexcept |
virtual bool | endsWith (const std::string_view &suffix) const noexcept |
virtual std::string | toString () |
virtual String | toSString () |
virtual void * | buf () |
静态 Public 成员函数 | |
static std::vector< std::string > | split (const std::string_view &text, const std::string_view &sub) noexcept |
static bool | startsWith (const std::string_view &text, const std::string_view &prefix) noexcept |
static bool | endsWith (const std::string_view &text, const std::string_view &suffix) noexcept |
Protected 成员函数 | |
void | expansion (size_t new_size) noexcept |
字符串缓存 | |
bool | insertAt (int index, const char *data, size_t len) |
Protected 属性 | |
size_t | cap {} |
size_t | len = 0 |
实际容量 | |
char * | buffer = nullptr |
字符串长度 | |
字符串缓冲类
|
explicitnoexcept |
cap | 初始容量 |
|
explicitnoexcept |
|
virtualnoexcept |
引用了 buffer.
|
noexcept |
|
noexcept |
|
virtualnoexcept |
被 sese::text::StringBuffer 重载.
引用了 append().
被这些函数引用 append(), append(), append(), append(), append(), append(), sese::Exception::buildStacktrace(), sese::xml::XmlUtil::createElement(), sese::db::impl::PostgresDriverInstanceImpl::createStatement(), sese::PercentConverter::decode(), sese::SymbolConverter::decodeUnixClassName(), sese::net::dns::DnsPackage::decodeWords(), sese::record::SimpleFormatter::dump(), sese::PercentConverter::encode(), sese::net::dns::DnsPackage::encodeWords(), sese::net::dns::DnsPackage::Index::encodeWords(), sese::text::FormatOption_FloatNumberFormat(), sese::net::http::HttpUtil::getLine(), sese::net::http::RequestHeader::getUrl(), sese::RandomUtil::nextString(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), sese::io::InputStreamReader::readLine(), sese::Json::tokenizer() , 以及 sese::xml::XmlUtil::tokenizer().
|
virtualnoexcept |
|
virtualnoexcept |
被 sese::text::StringBuffer 重载.
引用了 append().
|
virtualnoexcept |
被 sese::text::StringBuffer 重载.
引用了 append().
|
virtualnoexcept |
被 sese::text::StringBuffer 重载.
引用了 append().
|
virtualnoexcept |
被 sese::text::StringBuffer 重载.
引用了 append() , 以及 sstr::SStringView::len().
|
virtualnoexcept |
被 sese::text::StringBuffer 重载.
引用了 append().
|
virtual |
引用了 buffer.
|
virtualnoexcept |
被 sese::text::StringBuffer 重载.
引用了 len.
被这些函数引用 sese::text::StringBuffer::clear(), sese::CSVReader::read(), sese::io::InputStreamReader::readLine(), sese::net::http::HttpUtil::recvRequest(), sese::net::http::HttpUtil::recvResponse(), sese::Json::tokenizer(), sese::xml::XmlUtil::tokenizer() , 以及 sese::Yaml::tokenizer().
|
virtual |
|
virtual |
被 sese::text::StringBuffer 重载.
引用了 buffer, CheckRange , 以及 len.
|
inlinenodiscardvirtualnoexcept |
|
nodiscardvirtualnoexcept |
|
staticnoexcept |
被这些函数引用 sese::text::StringBuffer::endsWith().
|
protectednoexcept |
|
nodiscardvirtual |
被 sese::text::StringBuffer 重载.
引用了 buffer, cap , 以及 CheckRange.
|
protected |
引用了 buffer, cap, expansion(), len , 以及 STRING_BUFFER_SIZE_FACTOR.
被这些函数引用 insertAt(), insertAt(), insertAt(), insertAt(), insertAt(), sese::text::StringBuffer::insertAt(), sese::text::StringBuffer::insertAt(), sese::text::StringBuffer::insertAt(), sese::text::StringBuffer::insertAt() , 以及 sese::text::StringBuffer::insertAt().
|
virtual |
被 sese::text::StringBuffer 重载.
引用了 insertAt().
|
virtual |
被 sese::text::StringBuffer 重载.
引用了 insertAt().
|
virtual |
被 sese::text::StringBuffer 重载.
引用了 insertAt().
|
virtual |
被 sese::text::StringBuffer 重载.
引用了 insertAt() , 以及 sstr::SStringView::len().
|
virtual |
|
inlinenodiscardvirtualnoexcept |
|
virtualnoexcept |
|
virtual |
被 sese::text::StringBuffer 重载.
引用了 buffer, cap , 以及 CheckRange.
|
inlinenodiscardvirtualnoexcept |
|
nodiscardvirtualnoexcept |
被 sese::text::StringBuffer 重载.
|
staticnoexcept |
被这些函数引用 sese::net::dns::DnsPackage::encodeWords(), sese::net::http::RequestHeader::getUrl(), sese::net::http::Range::parse(), sese::net::http::RequestParser::parse(), sese::net::http::RequestParser::parseAddress(), sese::net::http::HttpUtil::parseFromCookie(), sese::text::DateTimeFormatter::parseFromISO8601(), sese::net::http::HttpUtil::parseFromSetCookie(), sese::net::http::HttpUtil::recvRequest(), sese::net::http::HttpUtil::recvResponse(), sese::net::http::RequestHeader::setUrl(), sese::text::StringBuffer::split() , 以及 sese::db::tokenize().
|
nodiscardvirtualnoexcept |
|
staticnoexcept |
|
virtual |
|
virtual |
被 sese::text::StringBuffer 重载.
被这些函数引用 sese::net::http::HPackUtil::buildCookieString(), sese::xml::XmlUtil::createElement(), sese::db::impl::PostgresDriverInstanceImpl::createStatement(), sese::PercentConverter::decode(), sese::SymbolConverter::decodeUnixClassName(), sese::net::dns::DnsPackage::decodeWords(), sese::record::SimpleFormatter::dump(), sese::PercentConverter::encode(), sese::net::dns::DnsPackage::encodeWords(), sese::net::dns::DnsPackage::Index::encodeWords(), sese::text::fmt(), sese::text::for_each(), sese::Yaml::getLine(), sese::net::http::RequestHeader::getUrl(), sese::RandomUtil::nextString(), sese::CSVReader::read(), sese::io::InputStreamReader::readLine(), sese::text::Number::toHex(), sese::text::Number::toHex(), sese::Json::tokenizer(), sese::xml::XmlUtil::tokenizer(), sese::Yaml::tokenizer(), sese::text::Number::toOct(), sese::text::Number::toOct(), sese::text::Number::toString(), sese::text::StringBuffer::toString() , 以及 sese::Value::toString().
|
virtualnoexcept |
去除两端空格
被 sese::text::StringBuffer 重载.
引用了 buffer, sese::isSpace() , 以及 len.
被这些函数引用 sese::text::StringBuffer::trim().
|
protected |
字符串长度
被这些函数引用 buf(), del(), delCharAt(), getCharAt(), insertAt(), reverse(), setChatAt(), toSString(), toString(), trim() , 以及 ~AbstractStringBuffer().
|
protected |
被这些函数引用 getCharAt(), insertAt(), setChatAt() , 以及 size().
|
protected |
实际容量
被这些函数引用 clear(), del(), delCharAt(), empty(), insertAt(), length(), reverse(), toSString(), toString() , 以及 trim().