Loading libs/utils/ResourceTypes.cpp +10 −1 Original line number Diff line number Diff line Loading @@ -3284,7 +3284,16 @@ bool ResTable::collectString(String16* outString, break; } if (c == '\'' && (quoted == 0 || quoted == '\'')) { break; /* * In practice, when people write ' instead of \' * in a string, they are doing it by accident * instead of really meaning to use ' as a quoting * character. Warn them so they don't lose it. */ if (outErrorMsg) { *outErrorMsg = "Apostrophe not preceded by \\"; } return false; } } p++; Loading Loading
libs/utils/ResourceTypes.cpp +10 −1 Original line number Diff line number Diff line Loading @@ -3284,7 +3284,16 @@ bool ResTable::collectString(String16* outString, break; } if (c == '\'' && (quoted == 0 || quoted == '\'')) { break; /* * In practice, when people write ' instead of \' * in a string, they are doing it by accident * instead of really meaning to use ' as a quoting * character. Warn them so they don't lose it. */ if (outErrorMsg) { *outErrorMsg = "Apostrophe not preceded by \\"; } return false; } } p++; Loading