X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/908dee0db9288bb455e9f1b68dd81ab50897a677..de7760b87ad8ca38954140a738d66a133f7021f0:/stglibs/srvconf.lib/parsers/chg_user.cpp diff --git a/stglibs/srvconf.lib/parsers/chg_user.cpp b/stglibs/srvconf.lib/parsers/chg_user.cpp index 3f7effd9..56b52d75 100644 --- a/stglibs/srvconf.lib/parsers/chg_user.cpp +++ b/stglibs/srvconf.lib/parsers/chg_user.cpp @@ -34,30 +34,10 @@ using namespace STG; -namespace -{ - -RESETABLE MaybeEncode(const RESETABLE & value) -{ -RESETABLE res; -if (!value.empty()) - res = Encode12str(value.data()); -return res; -} - -RESETABLE MaybeIconv(const RESETABLE & value, const std::string & fromEncoding, const std::string & toEncoding) -{ -RESETABLE res; -if (!value.empty()) - res = IconvString(value.data(), fromEncoding, toEncoding); -return res; -} - -} - -CHG_USER::PARSER::PARSER(SIMPLE::CALLBACK f, void * d) +CHG_USER::PARSER::PARSER(SIMPLE::CALLBACK f, void * d, const std::string & e) : callback(f), data(d), + encoding(e), depth(0) { }