error_type

typedef implementation_specific_type error_type

error_type は、正規表現解析時にライブラリが発生させる可能性のある様々な種類のエラーを表す。

概要

namespace boost{ namespace regex_constants{

typedef implementation-specific-type error_type;

static const error_type error_collate;
static const error_type error_ctype;
static const error_type error_escape;
static const error_type error_backref;
static const error_type error_brack;
static const error_type error_paren;
static const error_type error_brace;
static const error_type error_badbrace;
static const error_type error_range;
static const error_type error_space;
static const error_type error_badrepeat;
static const error_type error_complexity;
static const error_type error_stack;
static const error_type error_bad_pattern;

} // namespace regex_constants
} // namespace boost

説明

error_type は以下のいずれかの値をとる実装固有の列挙型である。

定数

意味

error_collate

[[.name.]] ブロックで指定した照合要素が不正。

error_ctype

[[:name:]] ブロックで指定した文字クラス名が不正。

error_escape

不正なエスケープか本体のないエスケープが見つかった。

error_backref

存在しないマーク済み部分式への後方参照が見つかった。

error_brack

不正な文字集合 [...] が見つかった。

error_paren

() が正しく対応していない。

error_brace

{} が正しく対応していない。

error_badbrace

{...} ブロックの内容が不正。

error_range

文字範囲が不正(例 [d-a])。

error_space

メモリ不足。

error_badrepeat

繰り返し不能なものを繰り返そうとした(例 a*+)。

error_complexity

式が複雑で処理できなかった。

error_stack

プログラムのスタック空間不足。

error_bad_pattern

その他のエラー。