CrossFramework Library
|
#include <XBase/StringTraits.hpp>
文字列に関する関数群。
テンプレート引数に char/wchar_t を入れて使ってください。
// 例 ::XBase::pword_t charLength = ::XBase::StringTraits< char >::Length( "abc" ); ::XBase::pword_t wcharLength = ::XBase::StringTraits< wchar_t >::Length( L"abc" );
構成 | |
struct | WriteResult |
Write系の結果。 [詳細] | |
static pword_t | Length (const CharType *aStr) |
指定の文字列の長さを取得する。 | |
static const WriteResult | NCopy (CharType *aBuffer, pword_t aBufferLength, const CharType *aStr) |
NCopyと同様の処理を行い追加でエラーチェックをする。 | |
static const WriteResult | NCopyStrict (CharType *aBuffer, pword_t aBufferLength, const CharType *aStr) |
文字列を指定のバッファにコピーする。 | |
static const WriteResult | SNPrintf (CharType *aBuffer, pword_t aBufferLength, const CharType *aFormat,...) |
SNPrintfStrictと同様の処理を行い追加でエラーチェックをする。 | |
static const WriteResult | SNPrintfStrict (CharType *aBuffer, pword_t aBufferLength, const CharType *aFormat,...) |
指定のバッファにPrintfフォーマットで作成された文字列を格納する。 | |
static const WriteResult | VSNPrintf (CharType *aBuffer, pword_t aBufferLength, const CharType *aFormat, va_list aArg) |
VSNPrintfStrictと同様の処理を行い追加でエラーチェックをする。 | |
static const WriteResult | VSNPrintfStrict (CharType *aBuffer, pword_t aBufferLength, const CharType *aFormat, va_list aArg) |
指定のバッファにPrintfフォーマットで作成された文字列を格納する。 |