#include <string.h>
Collaboration diagram for gslib::static_container::string< MaxStrLen, Ch, ChTraits >:

Public Types | |
| typedef Ch | char_type |
| typedef ChTraits | traits_type |
| typedef pointer | iterator |
| typedef const_pointer | const_iterator |
Public Member Functions | |
| BOOST_STATIC_CONSTANT (size_type, npos=-1) | |
| 最大サイズ | |
| BOOST_STATIC_CONSTANT (size_type, const_max=MaxStrLen) | |
| size_type | size () const |
| サイズ取得 | |
| size_type | length () const |
| サイズ取得 | |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| char_type & | operator[] (size_type i) |
| const char_type & | operator[] (size_type i) const |
| bool | empty () const |
| reference | at (size_type i) |
| char_type | at (size_type i) const |
| reference | front () |
| char_type | front () const |
| reference | back () |
| char_type | back () const |
| void | push_back (char_type ch) |
| 一文字追加 | |
| void | append (char_type ch) |
| 一文字追加 | |
| void | append (const char *str) |
| 文字列を末尾に追加 | |
| template<size_type OtherMaxStrLen> void | append (const string< OtherMaxStrLen, Ch, ChTraits > &other) |
| 文字列を末尾に追加 | |
| void | pop_back () |
| 一文字削除 | |
| string () | |
| デフォルトコンストラクタ | |
| template<size_type OtherMaxStrLen> | string (const string< OtherMaxStrLen, Ch, ChTraits > &other) |
| コピーコンストラクタ | |
| string (const char_type *s) | |
| ~string () | |
| string & | operator= (const string &other) |
| 代入演算子 | |
| string & | operator= (const char_type *s) |
| pointer | data () |
| 直アクセス | |
| const_pointer | data () const |
| const_pointer | c_str () const |
| string | operator+= (const char *other) |
| append() と同じです | |
| template<size_type OtherMaxStrLen> string | operator+= (const string< OtherMaxStrLen, Ch, ChTraits > &other) |
| append() と同じです | |
| void | clear () |
| 空文字列化 | |
Static Public Member Functions | |
| size_type | max_size () |
| 最大サイズ取得 | |
| size_type | capaciry () |
| 容量取得 | |
Private Attributes | |
| Ch | buffer_ [MaxStrLen+1] |
Friends | |
| template<size_type OtherMaxStrLen> bool | operator== (const string &a, const string< OtherMaxStrLen, Ch, ChTraits > &b) |
| 等しい? | |
| bool | operator== (const string &a, const char *b) |
| 等しい? | |
| bool | operator== (const char *a, const string &b) |
| 等しい? | |
| template<size_type OtherMaxStrLen> bool | operator!= (const string &a, const string< OtherMaxStrLen, Ch, ChTraits > &b) |
| 異なる? | |
| bool | operator!= (const string &a, const char *b) |
| 異なる? | |
| bool | operator!= (const char *a, const string &b) |
| 異なる? | |
| template<size_type OtherMaxStrLen> bool | operator< (const string &a, const string< OtherMaxStrLen, Ch, ChTraits > &b) |
| 辞書順比較 | |
| bool | operator< (const string &a, const char *b) |
| 辞書順比較 | |
| bool | operator< (const char *a, const string &b) |
| 辞書順比較 | |
内部的には、Ch[ MaxStrLen + 1 ] のみを利用する。
Definition at line 73 of file string.h.
|
|||||
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||||||
|
デフォルトコンストラクタ
Definition at line 167 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::clear().
00167 {
00168 clear();
00169 }
|
Here is the call graph for this function:

|
||||||||||||||
|
コピーコンストラクタ
Definition at line 173 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::begin(), gslib::static_container::string< MaxStrLen, Ch, ChTraits >::max_size(), and gslib::static_container::string< MaxStrLen, Ch, ChTraits >::size().
|
Here is the call graph for this function:

|
||||||||||
|
Definition at line 184 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::char_type, and gslib::static_container::string< MaxStrLen, Ch, ChTraits >::max_size().
|
Here is the call graph for this function:

|
|||||||||
|
Definition at line 196 of file string.h.
00196 {
00197 }
|
|
||||||||||||||
|
文字列を末尾に追加
Definition at line 154 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::append(), and gslib::static_container::string< MaxStrLen, Ch, ChTraits >::c_str().
00154 {
00155 append( other.c_str() );
00156 }
|
Here is the call graph for this function:

|
||||||||||
|
文字列を末尾に追加
Definition at line 140 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::char_type, gslib::static_container::string< MaxStrLen, Ch, ChTraits >::end(), gslib::static_container::string< MaxStrLen, Ch, ChTraits >::max_size(), and gslib::static_container::string< MaxStrLen, Ch, ChTraits >::size().
00140 {
00141 if ( 0 == str ) {
00142 return;
00143 }
00144 if ( size() + traits_type::length( str ) <= max_size() ) {
00145 traits_type::copy( end(), str, traits_type::length( str ) + 1 );
00146 } else {
00147 traits_type::copy( end(), str, max_size() );
00148 buffer_[ MaxStrLen ] = char_type();
00149 }
00150 }
|
Here is the call graph for this function:

|
||||||||||
|
一文字追加
Definition at line 135 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::char_type, and gslib::static_container::string< MaxStrLen, Ch, ChTraits >::push_back(). Referenced by gslib::static_container::string< MaxStrLen, Ch, ChTraits >::append(), gslib::static_container::string< MaxStrLen, Ch, ChTraits >::operator+=(), and gslib::static_container::string< MaxStrLen, Ch, ChTraits >::operator=().
00135 {
00136 push_back( ch );
00137 }
|
Here is the call graph for this function:

|
||||||||||
|
Definition at line 116 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::char_type, and gslib::static_container::string< MaxStrLen, Ch, ChTraits >::operator[]().
00116 { return operator [] ( i ); }
|
Here is the call graph for this function:

|
||||||||||
|
Definition at line 115 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::operator[]().
00115 { return operator [] ( i ); }
|
Here is the call graph for this function:

|
|||||||||
|
Definition at line 121 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::char_type, and gslib::static_container::string< MaxStrLen, Ch, ChTraits >::end().
00121 { return *( end() - 1 ); }
|
Here is the call graph for this function:

|
|||||||||
|
Definition at line 120 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::end().
00120 { return *( end() - 1 ); }
|
Here is the call graph for this function:

|
|||||||||
|
Definition at line 100 of file string.h.
00100 { return buffer_; }
|
|
|||||||||
|
||||||||||||||||
|
|
|
||||||||||||||||
|
最大サイズ
|
|
|||||||||
|
Definition at line 214 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::begin(). Referenced by gslib::static_container::string< MaxStrLen, Ch, ChTraits >::append(), and gslib::static_container::string< MaxStrLen, Ch, ChTraits >::operator=().
00214 { return begin(); }
|
Here is the call graph for this function:

|
|||||||||
|
容量取得
Definition at line 91 of file string.h.
00091 { return const_max; }
|
|
|||||||||
|
空文字列化
Definition at line 230 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::char_type. Referenced by gslib::static_container::string< MaxStrLen, Ch, ChTraits >::operator=(), and gslib::static_container::string< MaxStrLen, Ch, ChTraits >::string().
|
|
|||||||||
|
Definition at line 213 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::begin().
00213 { return begin(); }
|
Here is the call graph for this function:

|
|||||||||
|
直アクセス
Definition at line 212 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::begin().
00212 { return begin(); }
|
Here is the call graph for this function:

|
|||||||||
|
Definition at line 112 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::size(). Referenced by gslib::static_container::string< MaxStrLen, Ch, ChTraits >::pop_back().
00112 {
00113 return 0 == size();
00114 }
|
Here is the call graph for this function:

|
|||||||||
|
Definition at line 102 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::begin(), and gslib::static_container::string< MaxStrLen, Ch, ChTraits >::size().
|
Here is the call graph for this function:

|
|||||||||
Here is the call graph for this function:

|
|||||||||
|
Definition at line 119 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::begin(), and gslib::static_container::string< MaxStrLen, Ch, ChTraits >::char_type.
00119 { return *begin(); }
|
Here is the call graph for this function:

|
|||||||||
|
Definition at line 118 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::begin().
00118 { return *begin(); }
|
Here is the call graph for this function:

|
|||||||||
|
サイズ取得
Definition at line 97 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::size().
00097 { return size(); }
|
Here is the call graph for this function:

|
|||||||||
|
最大サイズ取得
Definition at line 88 of file string.h. Referenced by gslib::static_container::string< MaxStrLen, Ch, ChTraits >::append(), and gslib::static_container::string< MaxStrLen, Ch, ChTraits >::string().
00088 { return const_max; }
|
|
||||||||||||||
|
append() と同じです
Definition at line 224 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::append().
00224 {
00225 append( other );
00226 return *this;
00227 }
|
Here is the call graph for this function:

|
||||||||||
|
append() と同じです
Definition at line 217 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::append().
00217 {
00218 append( other );
00219 return *this;
00220 }
|
Here is the call graph for this function:

|
||||||||||
Here is the call graph for this function:

|
||||||||||
|
代入演算子
Definition at line 200 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::c_str().
00200 {
00201 return operator = ( other.c_str() );
00202 }
|
Here is the call graph for this function:

|
||||||||||
Here is the call graph for this function:

|
||||||||||
Here is the call graph for this function:

|
|||||||||
|
一文字削除
Definition at line 159 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::char_type, gslib::static_container::string< MaxStrLen, Ch, ChTraits >::empty(), and gslib::static_container::string< MaxStrLen, Ch, ChTraits >::end().
|
Here is the call graph for this function:

|
||||||||||
|
一文字追加
Definition at line 124 of file string.h. References gslib::static_container::string< MaxStrLen, Ch, ChTraits >::char_type, gslib::static_container::string< MaxStrLen, Ch, ChTraits >::end(), and gslib::static_container::string< MaxStrLen, Ch, ChTraits >::size(). Referenced by gslib::static_container::string< MaxStrLen, Ch, ChTraits >::append().
|
Here is the call graph for this function:

|
|||||||||
|
||||||||||||||||
|
異なる?
Definition at line 264 of file string.h.
00264 {
00265 return !operator == ( a, b );
00266 }
|
|
||||||||||||||||
|
異なる?
Definition at line 259 of file string.h.
00259 {
00260 return !operator == ( a, b );
00261 }
|
|
||||||||||||||||||||
|
異なる?
Definition at line 254 of file string.h.
00254 {
00255 return !operator == ( a, b );
00256 }
|
|
||||||||||||||||
|
辞書順比較
Definition at line 283 of file string.h.
00283 {
00284 return operator < ( b, a );
00285 }
|
|
||||||||||||||||
|
辞書順比較
Definition at line 275 of file string.h.
00275 {
00276 return std::lexicographical_compare(
00277 a.begin(), a.end(),
00278 b, b + traits_type::length( b ),
00279 traits_type::eq_int_type );
00280 }
|
|
||||||||||||||||||||
|
辞書順比較
Definition at line 270 of file string.h.
00270 {
00271 return operator < ( a, b.c_str() );
00272 }
|
|
||||||||||||||||
|
等しい?
Definition at line 248 of file string.h.
00248 {
00249 return operator == ( b, a );
00250 }
|
|
||||||||||||||||
|
等しい?
Definition at line 241 of file string.h.
|
|
||||||||||||||||||||
|
等しい?
Definition at line 236 of file string.h.
00236 {
00237 return operator == ( a, b.c_str() );
00238 }
|
|
|||||
|
|
1.3.6