InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
URICommonUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Sanyam Jain
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 2016 Adobe
18 // All Rights Reserved.
19 //
20 // NOTICE: Adobe permits you to use, modify, and distribute this file in
21 // accordance with the terms of the Adobe license agreement accompanying
22 // it. If you have received this file from a source other than Adobe,
23 // then your use, modification, or distribution of it requires the prior
24 // written permission of Adobe.
25 //
26 //========================================================================================
27 
28 #ifndef __PrivateURIUtils_h__
29 #define __PrivateURIUtils_h__
30 
31 #ifdef PUBLIC_BUILD
32 #endif
33 
34 #include "WideString.h"
35 
36 //========================================================================================
37 // CLASS URICommonUtils
38 //========================================================================================
39 
44 {
45 public:
46 
50  static void WideStringToURIEncoding(const WideString& wideStr, const char* overrideChars, std::string& encodedStr);
51 
55  static void URIEncodingToWideString(const std::string& encodedStr, WideString& wideStr);
56 
60  static bool WideStringToStdString(const WideString& wideStr, std::string& stdStr);
61 
65  static void PutURIChar(const uchar& ch, const char* overrideChars, std::string& encodedStr);
66 
71  static void GetURIChar(const std::string& encodedStr, uint32& idx, uint32& ch);
72 
77  static std::string GetURLEncodedString(std::string encodeString);
78 
79 };
80 
81 
82 #endif