acl  3.5.3.0
acl::session_string类 参考

#include <session.hpp>

+ 类 acl::session_string 继承关系图:
+ acl::session_string 的协作图:

Public 成员函数

 session_string (size_t n=64)
 
 session_string (const session_string &ss)
 
 session_string (const string &s)
 
 session_string (const char *s)
 
 ~session_string ()
 
- Public 成员函数 继承自 acl::string
 string (size_t n, bool bin)
 
 string (size_t n)
 
 string (void)
 
 string (const string &s)
 
 string (const char *s)
 
 string (const void *s, size_t n)
 
 string (int fd, size_t max, size_t n)
 
virtual ~string (void)
 
stringset_bin (bool bin)
 
stringset_max (int max)
 
bool get_bin () const
 
int get_max (void) const
 
char operator[] (size_t n) const
 
char operator[] (int n) const
 
char & operator[] (size_t n)
 
char & operator[] (int n)
 
stringoperator= (const char *s)
 
stringoperator= (const string &s)
 
stringoperator= (const string *s)
 
stringoperator= (const std::string &s)
 
stringoperator= (const std::string *s)
 
stringoperator= (long long int)
 
stringoperator= (unsigned long long int)
 
stringoperator= (char n)
 
stringoperator= (unsigned char n)
 
stringoperator= (long n)
 
stringoperator= (unsigned long n)
 
stringoperator= (int n)
 
stringoperator= (unsigned int n)
 
stringoperator= (short n)
 
stringoperator= (unsigned short n)
 
stringoperator+= (const char *s)
 
stringoperator+= (const string &s)
 
stringoperator+= (const string *s)
 
stringoperator+= (const std::string &s)
 
stringoperator+= (const std::string *s)
 
stringoperator+= (long long int n)
 
stringoperator+= (unsigned long long int n)
 
stringoperator+= (long n)
 
stringoperator+= (unsigned long n)
 
stringoperator+= (int n)
 
stringoperator+= (unsigned int n)
 
stringoperator+= (short n)
 
stringoperator+= (unsigned short n)
 
stringoperator+= (char n)
 
stringoperator+= (unsigned char n)
 
stringoperator<< (const string &s)
 
stringoperator<< (const string *s)
 
stringoperator<< (const std::string &s)
 
stringoperator<< (const std::string *s)
 
stringoperator<< (const char *s)
 
stringoperator<< (long long int n)
 
stringoperator<< (unsigned long long int n)
 
stringoperator<< (long n)
 
stringoperator<< (unsigned long n)
 
stringoperator<< (int n)
 
stringoperator<< (unsigned int n)
 
stringoperator<< (short n)
 
stringoperator<< (unsigned short n)
 
stringoperator<< (char n)
 
stringoperator<< (unsigned char n)
 
size_t operator>> (string *s)
 
size_t operator>> (string &s)
 
size_t operator>> (std::string *s)
 
size_t operator>> (std::string &s)
 
size_t operator>> (long long int &)
 
size_t operator>> (unsigned long long int &)
 
size_t operator>> (int &n)
 
size_t operator>> (unsigned int &n)
 
size_t operator>> (short &n)
 
size_t operator>> (unsigned short &n)
 
size_t operator>> (char &n)
 
size_t operator>> (unsigned char &n)
 
bool operator== (const string &s) const
 
bool operator== (const string *s) const
 
bool operator== (const char *s) const
 
bool operator!= (const string &s) const
 
bool operator!= (const string *s) const
 
bool operator!= (const char *s) const
 
bool operator< (const string &s) const
 
bool operator> (const string &s) const
 
 operator const char * () const
 
 operator const void * () const
 
stringpush_back (char ch)
 
bool equal (const string &s, bool case_sensitive=true) const
 
bool begin_with (const char *s, bool case_sensitive=true) const
 
bool begin_with (const char *s, size_t len, bool case_sensitive=true) const
 
bool begin_with (const string &s, bool case_sensitive=true) const
 
bool begin_with (const void *v, size_t len) const
 
bool end_with (const char *s, bool case_sensitive=true) const
 
bool end_with (const char *s, size_t len, bool case_sensitive=true) const
 
bool end_with (const string &s, bool case_sensitive=true) const
 
bool end_with (const void *v, size_t len) const
 
int compare (const string &s) const
 
int compare (const string *s) const
 
int compare (const char *s, bool case_sensitive=true) const
 
int compare (const void *ptr, size_t len) const
 
int ncompare (const char *s, size_t len, bool case_sensitive=true) const
 
int rncompare (const char *s, size_t len, bool case_sensitive=true) const
 
int find_blank_line (int *left_count=NULL, string *buf=NULL)
 
stringfind_reset (void)
 
int find (char n) const
 
char * find (const char *needle, bool case_sensitive=true) const
 
char * rfind (const char *needle, bool case_sensitive=true) const
 
string left (size_t n)
 
string right (size_t n)
 
size_t scan_buf (void *buf, size_t size, bool move=false)
 
bool scan_line (string &out, bool nonl=true, size_t *n=NULL, bool move=false)
 
size_t scan_move ()
 
char * buf_end (void)
 
void * buf () const
 
char * c_str () const
 
size_t length () const
 
size_t size () const
 
size_t capacity () const
 
bool empty () const
 
ACL_VSTRINGvstring (void) const
 
stringset_offset (size_t n)
 
stringspace (size_t n)
 
std::list< string > & split (const char *sep, bool quoted=false)
 
std::vector< string > & split2 (const char *sep, bool quoted=false)
 
std::pair< string, string > & split_nameval (void)
 
stringcopy (const char *ptr)
 
stringcopy (const void *ptr, size_t len)
 
stringmemmove (const char *src)
 
stringmemmove (const char *src, size_t len)
 
stringappend (const string &s)
 
stringappend (const string *s)
 
stringappend (const char *s)
 
stringappend (const void *ptr, size_t len)
 
stringprepend (const char *s)
 
stringprepend (const void *ptr, size_t len)
 
stringinsert (size_t start, const void *ptr, size_t len)
 
stringformat (const char *fmt,...) ACL_CPP_PRINTF(2
 
string stringvformat (const char *fmt, va_list ap)
 
stringformat_append (const char *fmt,...) ACL_CPP_PRINTF(2
 
string stringvformat_append (const char *fmt, va_list ap)
 
stringreplace (char from, char to)
 
stringtruncate (size_t n)
 
stringstrip (const char *needle, bool each=false)
 
stringtrim_left_space ()
 
stringtrim_right_space ()
 
stringtrim_space ()
 
stringtrim_left_line ()
 
stringtrim_right_line ()
 
stringtrim_line ()
 
stringclear ()
 
stringlower (void)
 
stringupper (void)
 
size_t substr (string &out, size_t p=0, size_t len=0) const
 
stringbase64_encode (void)
 
stringbase64_encode (const void *ptr, size_t len)
 
stringbase64_decode (void)
 
stringbase64_decode (const char *s)
 
stringbase64_decode (const void *ptr, size_t len)
 
stringurl_encode (const char *s, dbuf_pool *dbuf=NULL)
 
stringurl_decode (const char *s, dbuf_pool *dbuf=NULL)
 
stringhex_encode (const void *s, size_t len)
 
stringhex_decode (const char *s, size_t len)
 
stringbasename (const char *path)
 
stringdirname (const char *path)
 
template<typename T >
string operator+ (T v)
 

Public 属性

todo_t todo_
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 acl::string
static stringparse_int (int n)
 
static stringparse_int (unsigned int n)
 
static stringparse_int64 (long long int n)
 
static stringparse_int64 (unsigned long long int n)
 

详细描述

在文件 session.hpp20 行定义.

构造及析构函数说明

◆ session_string() [1/4]

acl::session_string::session_string ( size_t  n = 64)
inline

在文件 session.hpp23 行定义.

◆ session_string() [2/4]

acl::session_string::session_string ( const session_string ss)
inline

在文件 session.hpp24 行定义.

25  : string(ss)
26  {
27  todo_ = ss.todo_;
28  }

引用了 todo_.

◆ session_string() [3/4]

acl::session_string::session_string ( const string s)
inline

在文件 session.hpp29 行定义.

◆ session_string() [4/4]

acl::session_string::session_string ( const char *  s)
inline

在文件 session.hpp30 行定义.

◆ ~session_string()

acl::session_string::~session_string ( )
inline

在文件 session.hpp31 行定义.

31 {}

类成员变量说明

◆ todo_

todo_t acl::session_string::todo_

在文件 session.hpp32 行定义.

被这些函数引用 session_string().


该类的文档由以下文件生成: