mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 18:29:23 +02:00
synchronization with C++ version
This commit is contained in:
parent
e94e59ef5b
commit
22a54c86ae
2 changed files with 3 additions and 3 deletions
|
@ -673,14 +673,14 @@ void XHTMLReader::characterDataHandler(const char *text, std::size_t len) {
|
|||
myModelReader.addControl(PREFORMATTED, true);
|
||||
}
|
||||
std::size_t spaceCounter = 0;
|
||||
while (spaceCounter < len && isspace((unsigned char)*(text + spaceCounter))) {
|
||||
while (spaceCounter < len && std::isspace((unsigned char)*(text + spaceCounter))) {
|
||||
++spaceCounter;
|
||||
}
|
||||
myModelReader.addFixedHSpace(spaceCounter);
|
||||
text += spaceCounter;
|
||||
len -= spaceCounter;
|
||||
} else if (myNewParagraphInProgress || !myModelReader.paragraphIsOpen()) {
|
||||
while (isspace((unsigned char)*text)) {
|
||||
while (std::isspace((unsigned char)*text)) {
|
||||
++text;
|
||||
if (--len == 0) {
|
||||
break;
|
||||
|
|
|
@ -151,7 +151,7 @@ void ZLXMLReader::collectExternalEntities(std::map<std::string,std::string> &ent
|
|||
|
||||
const char *ZLXMLReader::attributeValue(const char **xmlattributes, const char *name) const {
|
||||
while (*xmlattributes != 0) {
|
||||
bool useNext = strcmp(*xmlattributes, name) == 0;
|
||||
bool useNext = std::strcmp(*xmlattributes, name) == 0;
|
||||
++xmlattributes;
|
||||
if (*xmlattributes == 0) {
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue