wide string fixes

This commit is contained in:
jez_higgins 2003-08-27 14:28:41 +00:00
parent e2d28dc77c
commit f65e534f9d

View file

@ -17,7 +17,8 @@ int main(int argc, char* argv[])
return 0;
} // if(argc < 2)
/*
{ // narrow
SAX::FeatureNames<std::string> fNames;
SAX::XMLReader<std::string> parser;
SAX::Writer writer(std::cout);
@ -39,7 +40,20 @@ int main(int argc, char* argv[])
writer.parse(is);
} // if(file != "-")
} // for ...
}
*/
{ // wide
SAX::FeatureNames<std::wstring> fNames;
SAX::XMLReader<std::wstring> parser;
SAX::wWriter writer(std::wcout);
writer.setParent(parser);
SAX::wInputSource is;
is.setSystemId(L"stdin");
is.setByteStream(std::cin);
writer.parse(is);
}
return 0;
} // main