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