Classes | Functions

favorites.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  Bookmark
struct  BookmarkNode
struct  BookmarkList
struct  BookmarkFolder
struct  Favorites


String DecodeURLString (const char *s)

Function Documentation

String DecodeURLString ( const char *  s )

Definition at line 34 of file favorites.cpp.

References BUFFER_LEN.

Referenced by Bookmark::read_url().

    TCHAR buffer[BUFFER_LEN];
    LPTSTR o = buffer;

    for(const char* p=s; *p; ++p)
        if (*p == '%') {
            if (!strncmp(p+1, "20", 2)) {
                *o++ = ' ';
                p += 2;
            } else
                *o++ = *p;
        } else
            *o++ = *p;

    return String(buffer, o-buffer);

Here is the caller graph for this function:

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage