バナーをクリックすれば目次に戻ります
Copyright 1999 Rogue Wave Software
Copyright 1999 Sun Microsystems, Inc.
RWWTokenizer
#include <rw/wtoken.h>
RWWString str("a string of tokens", RWWString::ascii);
RWWTokenizer(str); // 上記文字列をトークンに分解する
#include <rw/wtoken.h>
#include <rw/rstream.h>
main(){
RWWString a(L"Something is rotten in the state of Denmark");
RWWTokenizer next(a); // 文字列 a をトークンに分解する
RWWString token; // 各トークンを受け取る
// NULL 文字列が返ってくるまで繰り返す
while (!(token=next()).isNull())
cout << token << "\n";
}
|
Something
is
rotten
in
the
state
of
Denmark
|
RWWTokenizer(const RWWString& s);
RWWSubString operator();
RWWSubString operator()(const wchar_t* s);
RWWSubString operator()(const wchar_t* s,size_t num);
