2008-02-03から1日間の記事一覧

鬼車メモ

すこし触ってみる。 onig_searchとonig_matchの違い onig_searchはパターンに一致する部分を検索 onig_matchは指定したオフセットからの文字列がパターンにマッチするかを調べる 1文字目がマッチしなかったら失敗。前方検索みたいなイメージ? 「/g」はない…

鬼車: 回してみる

#include <stdio.h> #include <string.h> #include <malloc.h> #include "oniguruma.h" static regex_t *reg_compile(const char *pattern) { regex_t* reg; OnigErrorInfo einfo; int r; r = onig_new(&reg, (UChar *) pattern, (UChar *) (pattern + strlen(pattern)), ONIG_OPTION_DEFA</malloc.h></string.h></stdio.h>…

APLOG_NOERRNO

/* APLOG_NOERRNO is ignored and should not be used. It will be * removed in a future release of Apache. */ #define APLOG_NOERRNO (APLOG_LEVELMASK + 1) なるほどなるほど。

mod_digikoつくった

http://storehouse.quickvps.net/aozora/cards/000148/files/752_14964.html 文字列置換はめんどくさいなぁ… 設定 LoadModule digiko_module /usr/lib/apache2/modules/mod_digiko.so <Location /aozora> SetOutputFilter DIGIKO ProxyPass http://www.aozora.gr.jp ProxyPassR</location>…