extract-uri.cpp revision 9f5a047a5de798a18fc6fbe632de50f2241d763f
#include <string.h>
#include <glib.h>
// FIXME: kill this ugliness when we have a proper CSS parser
// Functions as per 4.3.4 of CSS 2.1
{
if (!s)
return NULL;
return NULL;
}
sb += 3;
if ( endptr ) {
*endptr = 0;
}
// This first whitespace technically is not allowed.
// Just left in for now for legacy behavior.
while ( ( *sb == ' ' ) ||
( *sb == '\t' ) )
{
sb++;
}
if ( *sb == '(' ) {
sb++;
while ( ( *sb == ' ' ) ||
( *sb == '\t' ) )
{
sb++;
}
sb++;
}
se++;
}
// we found the delimiter
if ( *se ) {
if ( delim == ')' ) {
if ( endptr ) {
}
// back up for any trailing whitespace
se--;
{
se--;
}
} else {
while ( ( *tail == ' ' ) ||
( *tail == '\t' ) )
{
tail++;
}
if ( *tail == ')' ) {
if ( endptr ) {
}
}
}
}
}
return result;
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :