--- parser3/src/include/pa_string.h 2003/09/23 09:54:28 1.145.4.1 +++ parser3/src/include/pa_string.h 2003/09/23 10:37:05 1.145.4.2 @@ -8,7 +8,7 @@ #ifndef PA_STRING_H #define PA_STRING_H -static const char* IDENT_STRING_H="$Date: 2003/09/23 09:54:28 $"; +static const char* IDENT_STRING_H="$Date: 2003/09/23 10:37:05 $"; // includes @@ -117,9 +117,9 @@ public: void set_pos(CORD_pos& pos, size_t index) const { CORD_set_pos(pos, body, index); } - StringBody normalize() const { + /*StringBody normalize() const { return StringBody(CORD_balance(body)); - } + }*/ void dump() const { CORD_dump(body); @@ -134,9 +134,6 @@ public: and the lang which should be used to detaint them */ class String: public PA_Object { - -// friend class StringBody; - public: /** piece is tainted or not. the lang to use when detaint @@ -264,12 +261,12 @@ public: } template void for_each(const StringBody current_body, - int (*callback)(char, size_t, I&), I& info) const { + int callback(char, size_t, I), I info) const { if(is_not_just_lang) - CORD_block_iter(langs, 0, (CORD_batched_iter_fn)callback, &info) == 1/*alternatives: 0 normally ended, 2=struck 'n'*/); + CORD_block_iter(langs, 0, (CORD_block_iter_fn)callback, info); else - callback(lang, current_body.length()); + callback(lang, current_body.length(), info); } };