cleanupBrief(std::string &S) {
21 boolPrevWasSpace =
true;
22std::string::iterator O = S.begin();
23 for(std::string::iterator I = S.begin(),
E= S.end();
33PrevWasSpace =
false;
36 if(O != S.begin() && *(O - 1) ==
' ')
39S.resize(O - S.begin());
48L(L), Traits(Traits) {
54std::string FirstParagraphOrBrief;
55std::string ReturnsParagraph;
56 boolInFirstParagraph =
true;
57 boolInBrief =
false;
58 boolInReturns =
false;
62 if(InFirstParagraph || InBrief)
63FirstParagraphOrBrief += Tok.
getText();
65ReturnsParagraph += Tok.
getText();
73FirstParagraphOrBrief.clear();
81InFirstParagraph =
false;
82ReturnsParagraph +=
"Returns ";
89InFirstParagraph =
false;
96 if(InFirstParagraph || InBrief)
97FirstParagraphOrBrief +=
' ';
99ReturnsParagraph +=
' ';
121 if(InFirstParagraph && !
isWhitespace(FirstParagraphOrBrief))
122InFirstParagraph =
false;
133cleanupBrief(FirstParagraphOrBrief);
134 if(!FirstParagraphOrBrief.empty())
135 returnFirstParagraphOrBrief;
137cleanupBrief(ReturnsParagraph);
138 returnReturnsParagraph;
The JSON file list parser is used to communicate input to InstallAPI.
LLVM_READONLY bool isWhitespace(unsigned char c)
Return true if this character is horizontal or vertical ASCII whitespace: ' ', '\t',...
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4