Utilities/RB_Skip_Whitespace [ Functions ]

SYNOPSIS

 *   char * RB_Skip_Whitespace(char *buf)

FUNCTION

Skip space and tab chars from the start *buf. This is needed when searching for indented headers and items.

NOTES

We should extract some info about indentation level and save it to global variable in order to write out source items (that originate from indented headers) neatly.

SEE ALSO

RB_Find_Marker, RB_Find_End_Marker, RB_Find_Item, RB_Generate_Item_Body

SOURCE

char               *RB_Skip_Whitespace(
    char *buf )
{
    char               *c;

    for ( c = buf; *c; c++ )
    {
        if ( utf8_isspace( *c ) )
        {

        }
        else
        {
            return c;
        }
    }
    return c;                   /* buf was null */
}