|
Ginga
0.13.6.1771-df200
The iTV middleware.
|

Macros | |
| #define | _GINGA_PARSE_DEFN(Type, Name, Str) |
| #define | _GINGA_XSTRTO_DEFN(Type, Typemin, Typemax) |
| #define | _GINGA_XSTRTOU_DEFN(Type, Typemax) |
Functions | |
| GINGA_NAMESPACE_BEGIN string | __ginga_strfunc (const string &strfunc) |
| Parses G_STRFUNC string to generate a log prefix. More... | |
| bool | try_parse_bool (const string &s, bool *result) |
| Parses boolean string. More... | |
| bool | try_parse_color (const string &s, Color *result) |
| Parses color string. More... | |
| bool | try_parse_list (const string &s, char sep, size_t min, size_t max, list< string > *result) |
| Parses list of string items. More... | |
| bool | try_parse_time (const string &s, Time *result) |
| list< string > | parse_list (const string &s, char sep, size_t min, size_t max) |
| int | parse_percent (const string &s, int base, int min, int max) |
| Parses number or percent string to an integer. More... | |
| guint8 | parse_pixel (const string &s) |
| Parses pixel string to an integer. More... | |
| bool | _xstrtod (const string &s, double *dp) |
| Converts string to a floating-point number. More... | |
| bool | _xstrtoll (const string &s, gint64 *ip, guint base) |
| Converts string to a 64-bit integer. More... | |
| bool | _xstrtoull (const string &s, guint64 *ip, guint base) |
| Converts string to an unsigned 64-bit integer. More... | |
| double | xstrtod (const string &s) |
| bool | xstrispercent (const string &s) |
| Checks if string is a percent value. More... | |
| gdouble | xstrtodorpercent (const string &s, bool *perc) |
| Converts number or percent string to floating-point number. More... | |
| int | xstrcasecmp (const string &s1, const string &s2) |
| Compares two strings ignoring case. More... | |
| bool | xstrhasprefix (const string &s, const string &prefix) |
| Tests string prefix. More... | |
| bool | xstrhassuffix (const string &s, const string &suffix) |
| Tests string suffix. More... | |
| int | xstrassign (string &s, const char *format,...) |
| Assigns format to string. More... | |
| string | xstrbuild (const char *format,...) |
| Builds string from format. More... | |
| string | xstrstrip (string s) |
| Removes leading and trailing whitespace from string. More... | |
| list< string > | xstrsplit (const string &s, char sep) |
| Splits strings according to separator. More... | |
| string | xpathbasename (string path) |
| Returns the basename of path. More... | |
| string | xpathdirname (string path) |
| Returns the dirname of path. More... | |
| bool | xpathisabs (const string &path) |
| Checks if path is absolute. More... | |
| bool | xpathisuri (const string &path) |
| Checks if path is an URI. More... | |
| string | xpathmakeabs (string path) |
| Makes path absolute. More... | |
| string | xpathbuild (const string &a, const string &b) |
| Builds a path from the given components. More... | |
| string | xpathbuildabs (const string &a, const string &b) |
| Builds an absolute path from the given components. More... | |
| #define _GINGA_PARSE_DEFN | ( | Type, | |
| Name, | |||
| Str | |||
| ) |
| #define _GINGA_XSTRTO_DEFN | ( | Type, | |
| Typemin, | |||
| Typemax | |||
| ) |
| #define _GINGA_XSTRTOU_DEFN | ( | Type, | |
| Typemax | |||
| ) |
| GINGA_NAMESPACE_BEGIN string __ginga_strfunc | ( | const string & | strfunc | ) |
Parses G_STRFUNC string to generate a log prefix.
| strfunc | String generated by G_STRFUNC macro. |
References g_assert().
| bool _xstrtod | ( | const string & | s, |
| double * | dp | ||
| ) |
| bool _xstrtoll | ( | const string & | s, |
| gint64 * | ip, | ||
| guint | base | ||
| ) |
| bool _xstrtoull | ( | const string & | s, |
| guint64 * | ip, | ||
| guint | base | ||
| ) |
| list<string> parse_list | ( | const string & | s, |
| char | sep, | ||
| size_t | min, | ||
| size_t | max | ||
| ) |
References ERROR, try_parse_list(), and unlikely.
Referenced by PlayerAnimator::schedule().
| int parse_percent | ( | const string & | s, |
| int | base, | ||
| int | min, | ||
| int | max | ||
| ) |
Parses number or percent string to an integer.
| s | Number or percent string. |
| base | Base value used to convert percent to integer. |
| min | Minimum resulting integer. |
| max | Maximum resulting integer. |
References xstrtodorpercent().
Referenced by PlayerAnimator::doSchedule(), Player::doSetProperty(), parse_pixel(), ParserXercesC::parseRegion(), and ParserState::pushRegion().
| guint8 parse_pixel | ( | const string & | s | ) |
Parses pixel string to an integer.
| s | Pixel string. |
References parse_percent().
Referenced by Player::doSetProperty().
| bool try_parse_bool | ( | const string & | s, |
| bool * | result | ||
| ) |
Parses boolean string.
| s | Boolean string. |
| result | Variable to store the resulting boolean. |
References tryset, and xstrcaseeq.
Referenced by parser_syntax_parse_bool().
| bool try_parse_color | ( | const string & | s, |
| Color * | result | ||
| ) |
Parses color string.
| s | Color string. |
| result | Variable to store the resulting color. |
References tryset.
Referenced by PlayerText::doSetProperty().
| bool try_parse_list | ( | const string & | s, |
| char | sep, | ||
| size_t | min, | ||
| size_t | max, | ||
| list< string > * | result | ||
| ) |
Parses list of string items.
| s | List string. |
| sep | Separator. |
| min | Minimum number of items. |
| max | Maximum number of items. |
| result | Variable to store the resulting items. |
References n, xstrsplit(), and xstrstrip().
Referenced by Player::doSetProperty(), and parse_list().
| bool try_parse_time | ( | const string & | s, |
| Time * | result | ||
| ) |
Parses time string ("Ns" or "NN:NN:NN").
| s | Time string. |
| result | Variable to store the resulting time. |
References g_free(), GINGA_SECOND, and tryset.
| string xpathbasename | ( | string | path | ) |
| string xpathbuild | ( | const string & | a, |
| const string & | b | ||
| ) |
| string xpathbuildabs | ( | const string & | a, |
| const string & | b | ||
| ) |
Builds an absolute path from the given components.
References xpathbuild(), and xpathmakeabs().
Referenced by ncl_push_media(), ParserXercesC::parse1(), ParserXercesC::parseImportBase(), ParserXercesC::parseMedia(), and ParserState::pushMedia().
| string xpathdirname | ( | string | path | ) |
Returns the dirname of path.
References g_free().
Referenced by ncl_push_media(), ParserXercesC::parse0(), ParserXercesC::parseImportBase(), ParserState::pushMedia(), and Player::redrawDebuggingInfo().
| bool xpathisabs | ( | const string & | path | ) |
Checks if path is absolute.
Referenced by ncl_push_media(), ParserXercesC::parse1(), ParserXercesC::parseMedia(), ParserState::pushMedia(), and xpathmakeabs().
| bool xpathisuri | ( | const string & | path | ) |
Checks if path is an URI.
References g_free().
Referenced by ncl_push_media(), ParserXercesC::parse1(), ParserXercesC::parseMedia(), and ParserState::pushMedia().
| string xpathmakeabs | ( | string | path | ) |
Makes path absolute.
References g_free(), and xpathisabs().
Referenced by ParserXercesC::parse0(), and xpathbuildabs().
| int xstrassign | ( | string & | s, |
| const char * | format, | ||
| ... | |||
| ) |
Assigns format to string.
| s | Resulting string. |
| format | Format string. |
References c_str, g_assert(), g_assert_nonnull(), g_free(), n, va_end(), and va_start().
| string xstrbuild | ( | const char * | format, |
| ... | |||
| ) |
Builds string from format.
| format | Format string. |
References c_str, g_assert(), g_assert_nonnull(), g_free(), n, va_end(), and va_start().
Referenced by check_elt(), ParserState::errElt(), ParserState::genId(), ncl_push_region(), ParserXercesC::parseBind(), ParserXercesC::parseRegion(), processElt(), ParserState::processNode(), ParserState::pushRegion(), Formatter::redraw(), Player::redrawDebuggingInfo(), PlayerText::renderSurface(), PlayerAnimator::schedule(), st_gen_id(), Context::toString(), Media::toString(), Object::toString(), and Event::toString().
| int xstrcasecmp | ( | const string & | s1, |
| const string & | s2 | ||
| ) |
Compares two strings ignoring case.
| s1 | First string. |
| s2 | Second string. |
| bool xstrhasprefix | ( | const string & | s, |
| const string & | prefix | ||
| ) |
Tests string prefix.
| s | String. |
| prefix | Prefix. |
Referenced by Player::createPlayer(), parser_syntax_reserved_role_table_index(), and Media::sendKeyEvent().
| bool xstrhassuffix | ( | const string & | s, |
| const string & | suffix | ||
| ) |
Tests string suffix.
| s | String. |
| suffix | Suffix. |
| bool xstrispercent | ( | const string & | s | ) |
Checks if string is a percent value.
| s | Value string. |
| list<string> xstrsplit | ( | const string & | s, |
| char | sep | ||
| ) |
Splits strings according to separator.
| s | String. |
| sep | Separator. |
Referenced by try_parse_list().
| string xstrstrip | ( | string | s | ) |
Removes leading and trailing whitespace from string.
References g_free().
Referenced by Parser::parseBuffer(), Parser::parseFile(), and try_parse_list().
| double xstrtod | ( | const string & | s | ) |
References _xstrtod(), and g_assert().
| gdouble xstrtodorpercent | ( | const string & | s, |
| bool * | perc | ||
| ) |
Converts number or percent string to floating-point number.
| s | Number or percent string. |
| perc | Variable to store whether the converted value is a number or percent value. |
References tryset.
Referenced by PlayerVideo::doSetProperty(), and parse_percent().