operator in

C++

bool String::op_in(const ChRangePtr& range) const;

Xtal

// param  type : ChRange
// return type : bool
Xdef_method2(op_in, ChRange);

Description

1文字文字列(is_asciiがtrueを返す文字列)のみが有効な動作をし、rangeに与えたasciiコード範囲の文字かどうかを返します。

ChRange側の仕様かわかりませんが、大文字と小文字のChRangeでは常にfalseを返すような気がします。

Example1

使用例(手抜き感)

C++

Xtal

a_to_d : "a".."d";
("a" in a_to_d).p;
("c" in a_to_d).p;
("d" in a_to_d).p;
("e" in a_to_d).p;

Output

true
true
true
false

See Also

reference/string/operator_in.txt · 最終更新: 2012/08/21 22:49 by sukai
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0