Functions

favorites.cpp File Reference

#include <precomp.h>
#include "startmenu.h"
Include dependency graph for favorites.cpp:

Go to the source code of this file.

Functions

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