KHTML
Go to the documentation of this file.
21 #ifndef SVGParserUtilities_h
22 #define SVGParserUtilities_h
37 bool parseNumber(
const UChar*& ptr,
const UChar* end,
float& number,
bool skip =
true);
38 bool parseNumberOptionalNumber(
const String& s,
float& h,
float& v);
42 inline bool isWhitespace(
const UChar& c)
44 return (c ==
' ' || c ==
'\t' || c ==
'\n' || c ==
'\r');
47 inline bool skipOptionalSpaces(
const UChar*& ptr,
const UChar* end)
49 while (ptr < end && isWhitespace(*ptr))
54 inline bool skipOptionalSpacesOrDelimiter(
const UChar*& ptr,
const UChar* end, UChar delimiter =
',')
56 if (ptr < end && !isWhitespace(*ptr) && *ptr != delimiter)
58 if (skipOptionalSpaces(ptr, end)) {
59 if (ptr < end && *ptr == delimiter) {
61 skipOptionalSpaces(ptr, end);
67 bool pointsListFromSVGData(SVGPointList* pointsList,
const String& points);
69 bool pathSegListFromSVGData(SVGPathSegList* pathSegList,
const String&
d,
bool process =
false);
70 Vector<String> parseDelimitedString(
const String& input,
const char separator);
75 #endif // SVGParserUtilities_h
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Apr 16 2013 21:10:48 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.