kodi
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
NPT_Uri Class Reference
Inheritance diagram for NPT_Uri:
Inheritance graph
[legend]
Collaboration diagram for NPT_Uri:
Collaboration graph
[legend]

Public Types

enum  SchemeId { SCHEME_ID_UNKNOWN, SCHEME_ID_HTTP, SCHEME_ID_HTTPS }
 

Public Member Functions

const NPT_StringGetScheme () const
 
void SetScheme (const char *scheme)
 
NPT_Result SetSchemeFromUri (const char *uri)
 
SchemeId GetSchemeId () const
 

Static Public Member Functions

static NPT_String PercentEncode (const char *str, const char *chars, bool encode_percents=true)
 
static NPT_String PercentDecode (const char *str)
 
static SchemeId ParseScheme (const NPT_String &scheme)
 

Static Public Attributes

static const char *const PathCharsToEncode = NPT_URI_ALWAYS_ENCODE "?#[]"
 
static const char *const QueryCharsToEncode = NPT_URI_ALWAYS_ENCODE "#[]"
 
static const char *const FragmentCharsToEncode = NPT_URI_ALWAYS_ENCODE "[]"
 
static const char *const UnsafeCharsToEncode = NPT_URI_ALWAYS_ENCODE
 

Protected Attributes

NPT_String m_Scheme
 
SchemeId m_SchemeId
 

The documentation for this class was generated from the following files: