another rev of text parsing.

This commit is contained in:
Lee Thomason
2012-01-14 18:08:12 -08:00
parent 85403d8935
commit fde6a756d1
4 changed files with 59 additions and 23 deletions

View File

@@ -68,13 +68,13 @@ protected:
}
return false;
}
inline static int IsUTF8Continuation( char p ) { return p & 0x80; }
/* Parses text. (Not a text node.)
- [ ] EOL normalization.
- [x] Trim leading whitespace
- [ ] Trim trailing whitespace.
- [ ] Leaves inner whitespace
- [ ] Inserts one space between lines.
- [X] Do not trim leading whitespace
- [X] Do not trim trailing whitespace.
- [X] Leaves inner whitespace
*/
const char* ParseText( char* in, const char* endTag, char** next );