メモリを共有したまま複数の文字列インスタンスを表現するためのC++ライブラリ
(C)2011- H.Hiro/Maraigue (mail: main at hhiro.net)
fundoshi::string
describes an ordinary string (consisting of char
) whose source memory is allocated with std::string
, char *
and so on.fundoshi::wstring
describes a wide-character string (consisting of wchar_t
) whose source memory is allocated with std::wstring
, wchar_t *
and so on.fundoshi::basic_string<CHAR_TYPE>
like std::basic_string<CHAR_TYPE>
.fundoshi::basic_string
for the defined methods.std::basic_string
(std::string
), although some methods are omitted.fundoshi::string
は、std::string
やchar *
などにより確保されたメモリを元とする、char
からなる普通の文字列 を表します。fundoshi::wstring
は、std::wstring
やwchar_t *
などにより確保されたメモリを元とする、wchar_t
からなるワイド文字列を表します。fundoshi::basic_string<CHAR_TYPE>
として表されます。std::basic_string<CHAR_TYPE>
と同様です。fundoshi::basic_string
のドキュメントをご覧ください。std::basic_string
(std::string
)のものと同じです。ただし、実装されていないメソッドもあります。