ReactOS  0.4.13-dev-99-g7e18b6d
favorites.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Bookmark
 
struct  BookmarkNode
 
struct  BookmarkList
 
struct  BookmarkFolder
 
struct  Favorites
 

Functions

String DecodeURLString (const char *s)
 

Function Documentation

◆ DecodeURLString()

String DecodeURLString ( const char s)

Definition at line 34 of file favorites.cpp.

35 {
37  LPTSTR o = buffer;
38 
39  for(const char* p=s; *p; ++p)
40  if (*p == '%') {
41  if (!strncmp(p+1, "20", 2)) {
42  *o++ = ' ';
43  p += 2;
44  } else
45  *o++ = *p;
46  } else
47  *o++ = *p;
48 
49  return String(buffer, o-buffer);
50 }
GLuint buffer
Definition: glext.h:5915
static WCHAR String[]
Definition: stringtable.c:55
CHAR * LPTSTR
Definition: xmlstorage.h:192
#define BUFFER_LEN
Definition: utility.h:97
char TCHAR
Definition: xmlstorage.h:189
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
Definition: utclib.c:534
GLdouble s
Definition: gl.h:2039
GLfloat GLfloat p
Definition: glext.h:8902

Referenced by Bookmark::read_url().