jre_util.hpp

正規表現ラッパーユーティリティ [詳細]

#include <string>
#include <map>
#include "langedge/dll_loader.hpp"
#include "langedge/jregex_interface.h"
#include "langedge/pathname.hpp"

jre_util.hppのインクルード依存関係図

ソースコードを見る。

ネームスペース

namespace  langedge
namespace  langedge::jregex

関数

JRegexIF * JRegMatch (const char *pattern, const char *target, int rflags=0)
 グローバルな正規表現キャッシュを使ったマッチ.
JRegexIF * JRegMatch (const std::string &pattern, const std::string &target, int rflags=0)
 正規表現キャッシュを使ったマッチ.
JRegexIF * JRegSubst (const char *pattern, const char *target, char *result, size_t bufsiz, int rflags=0)
 グローバルな正規表現キャッシュを使った置換.
JRegexIF * JRegSubst (const std::string &pattern, const std::string &target, std::string &result, int rflags=0)
 正規表現キャッシュを使った置換.


説明

正規表現ラッパーユーティリティ

作者:
OKA Toshiyuki (LangEdge, Inc.)
日付:
2001-12-13
バージョン:
Id
jre_util.hpp,v 1.8 2005/05/06 09:56:40 exoka Exp
Copyright (C) 2001-2005 LangEdge, Inc. All rights reserved.

関数

JRegexIF* langedge::jregex::JRegMatch const char *  pattern,
const char *  target,
int  rflags = 0
[inline]
 

グローバルな正規表現キャッシュを使ったマッチ.

引数:
pattern 正規表現パターン文字列
target マッチング対象文字列
rflags 動作指定フラグ (enum RegFlags) のビット和。
文字コードの指定は、同一パターンの最初の使用時のみ有効。
戻り値:
マッチングに使用された正規表現オブジェクトへのポインタ。 クライアント側ではこのポインタを delete したり release してはならない。
事前条件:
正規表現ライブラリがDLLの場合は、あらかじめ TheJRegexLoader::dllPath() を呼んで DLL のパスを設定しておく必要がある。
覚え書き:
DLLではなく、static な正規表現ライブラリを使用する場合は、 jre_util.hpp をインクルードする前に USE_LEI_JREGEX_STATIC_LIBRARY マクロを定義しておく必要がある。

JRegexIF* langedge::jregex::JRegMatch const std::string &  pattern,
const std::string &  target,
int  rflags = 0
[inline]
 

正規表現キャッシュを使ったマッチ.

引数が std::string であることを除き、同名の関数に同じ。

JRegexIF* langedge::jregex::JRegSubst const char *  pattern,
const char *  target,
char *  result,
size_t  bufsiz,
int  rflags = 0
[inline]
 

グローバルな正規表現キャッシュを使った置換.

引数:
pattern 「/パターン/置換文字列/[修飾子]」
target 置換対象文字列を格納するバッファ
result 置換後文字列を格納するバッファ (文字列)
bufsiz result バッファのサイズ (target と同じものでもよい)
rflags 動作指定フラグ (enum RegFlags) のビット和。
文字コードの指定は、同一パターンの最初の使用時のみ有効。
戻り値:
置換に使用された正規表現オブジェクトのポインタ。 クライアント側ではこのポインタを delete したり release してはならない。
事前条件:
正規表現ライブラリがDLLの場合は、あらかじめ TheJRegexLoader::dllPath() を呼んで DLL のパスを設定しておく必要がある。
覚え書き:
DLLではなく、static な正規表現ライブラリを使用する場合は、 jre_util.hpp をインクルードする前に USE_LEI_JREGEX_STATIC_LIBRARY マクロを定義しておく必要がある。

JRegexIF* langedge::jregex::JRegSubst const std::string &  pattern,
const std::string &  target,
std::string &  result,
int  rflags = 0
[inline]
 

正規表現キャッシュを使った置換.

引数が std::string であることを除き、同名の関数に同じ。


LangEdge ライブラリに対してFri May 6 22:42:59 2005に生成されました。  doxygen 1.4.2