git-svn-id: svn://db.shs.com.ru/pip@218 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2016-08-10 11:13:23 +00:00
parent 250965920c
commit 4febbcddfe
2 changed files with 6 additions and 0 deletions

View File

@@ -285,6 +285,7 @@ const char * PIString::dataAscii() const {
PIByteArray PIString::toUTF8() const {
if (isEmpty()) return data_.resized(0);
buildData(
#ifdef PIP_ICU
"UTF-8"
@@ -295,6 +296,7 @@ PIByteArray PIString::toUTF8() const {
PIByteArray PIString::toCharset(const char * c) const {
if (isEmpty()) return data_.resized(0);
buildData(
#ifdef PIP_ICU
c

View File

@@ -693,6 +693,7 @@ PIString PIConfig::parseLine(PIString v) {
void PIConfig::parse() {
//piCout << "[PIConfig] charset" << PIFile::defaultCharset();
PIString src, str, tab, comm, all, name, type, prefix, tprefix;
PIStringList tree;
Entry * entry, * te, * ce;
@@ -719,6 +720,7 @@ void PIConfig::parse() {
tab = str.left(str.find(str.trimmed().left(1)));
str.trim();
//cout << endl << str << endl << endl;
// piCout << "[PIConfig] str" << str.size() << str << str.toUTF8();
all = str;
ind = str.find('=');
if ((ind > 0) && (str[0] != '#')) {
@@ -778,6 +780,8 @@ void PIConfig::parse() {
ce->_value = str.right(str.length() - ind - 1).trimmed();
ce->_type = type;
ce->_comment = comm;
//piCout << "[PIConfig] comm" << comm.size() << comm << comm.toUTF8();
//piCout << "[PIConfig] type" << type.size() << type << type.toUTF8();
ce->_line = lines;
ce->_all = all;
if (isNew) {