![]() | InDesign SDK 20.5 |
#include <URICommonUtils.h>
Static Public Member Functions | |
| static void | WideStringToURIEncoding (const WideString &wideStr, const char *overrideChars, std::string &encodedStr) |
| static void | URIEncodingToWideString (const std::string &encodedStr, WideString &wideStr) |
| static bool | WideStringToStdString (const WideString &wideStr, std::string &stdStr) |
| static void | PutURIChar (const uchar &ch, const char *overrideChars, std::string &encodedStr) |
| static void | GetURIChar (const std::string &encodedStr, uint32 &idx, uint32 &ch) |
| static std::string | GetURLEncodedString (std::string encodeString) |
Utility functions to operate on URI's
| static |
URI decodes the characters starting at index 'idx' in 'encodedStr' and returns it in parameter 'ch'. The index 'idx' is appropriately adjusted. Returns 0 in parameter 'ch' if input index is out of string bounds.
| static |
Converts a given String to a URI encoded string. Returns the encoded String.
| static |
Appends the character 'ch' into 'encodedStr' after URI encoding it. The string 'overrideChars', if not null, contains a list of characters that should not be encoded.
| static |
Converts a URI encoded string to a WideString.
| static |
Given a URI encoded WideString, converts it to a string. Returns false and empty string in stdStr if the conversion failed.
| static |
Converts a WideString to a URI encoded string. The string 'overrideChars', if not null, contains a list of characters that should not be encoded.