mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 02:09:35 +02:00
std:: prefix
This commit is contained in:
parent
4ff636253f
commit
93ea82e5c2
10 changed files with 51 additions and 51 deletions
|
@ -404,7 +404,7 @@ HtmlBookReader::~HtmlBookReader() {
|
|||
void HtmlBookReader::addConvertedDataToBuffer(const char *text, std::size_t len, bool convert) {
|
||||
if (len > 0) {
|
||||
if (myDontBreakParagraph) {
|
||||
while ((len > 0) && isspace(*text)) {
|
||||
while (len > 0 && std::isspace(*text)) {
|
||||
--len;
|
||||
++text;
|
||||
}
|
||||
|
@ -433,7 +433,7 @@ bool HtmlBookReader::tagHandler(const HtmlTag &tag) {
|
|||
if (tag.Attributes[i].Name == "ID") {
|
||||
myBookReader.addHyperlinkLabel(tag.Attributes[i].Value);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
shared_ptr<HtmlTagAction> action = myActionMap[tag.Name];
|
||||
if (action.isNull()) {
|
||||
|
@ -464,7 +464,7 @@ void HtmlBookReader::preformattedCharacterDataHandler(const char *text, std::siz
|
|||
myBookReader.beginParagraph();
|
||||
start = ptr + 1;
|
||||
} else if (mySpaceCounter >= 0) {
|
||||
if (isspace((unsigned char)*ptr)) {
|
||||
if (std::isspace((unsigned char)*ptr)) {
|
||||
++mySpaceCounter;
|
||||
} else {
|
||||
myBookReader.addFixedHSpace(mySpaceCounter);
|
||||
|
@ -475,7 +475,7 @@ void HtmlBookReader::preformattedCharacterDataHandler(const char *text, std::siz
|
|||
addConvertedDataToBuffer(start, end - start, convert);
|
||||
} else if (breakType & PlainTextFormat::BREAK_PARAGRAPH_AT_LINE_WITH_INDENT) {
|
||||
for (const char *ptr = text; ptr != end; ++ptr) {
|
||||
if (isspace((unsigned char)*ptr)) {
|
||||
if (std::isspace((unsigned char)*ptr)) {
|
||||
if (*ptr == '\n') {
|
||||
mySpaceCounter = 0;
|
||||
} else if (mySpaceCounter >= 0) {
|
||||
|
@ -499,7 +499,7 @@ void HtmlBookReader::preformattedCharacterDataHandler(const char *text, std::siz
|
|||
}
|
||||
} else if (breakType & PlainTextFormat::BREAK_PARAGRAPH_AT_EMPTY_LINE) {
|
||||
for (const char *ptr = start; ptr != end; ++ptr) {
|
||||
if (isspace((unsigned char)*ptr)) {
|
||||
if (std::isspace((unsigned char)*ptr)) {
|
||||
if (*ptr == '\n') {
|
||||
++myBreakCounter;
|
||||
}
|
||||
|
@ -536,7 +536,7 @@ bool HtmlBookReader::characterDataHandler(const char *text, std::size_t len, boo
|
|||
const char *end = text + len;
|
||||
if (!myIsStarted) {
|
||||
for (; ptr != end; ++ptr) {
|
||||
if (!isspace((unsigned char)*ptr)) {
|
||||
if (!std::isspace((unsigned char)*ptr)) {
|
||||
myIsStarted = true;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue