mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 03:55:58 +08:00
初始提交
This commit is contained in:
37
src/Http/strCoding.h
Normal file
37
src/Http/strCoding.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* strCoding.h
|
||||
*
|
||||
* Created on: 2016年9月22日
|
||||
* Author: xzl
|
||||
*/
|
||||
|
||||
#ifndef SRC_HTTP_STRCODING_H_
|
||||
#define SRC_HTTP_STRCODING_H_
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#ifdef _WINDOWS
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace ZL {
|
||||
namespace Http {
|
||||
|
||||
class strCoding {
|
||||
public:
|
||||
static string UrlUTF8Encode(const char * str); //urlutf8 编码
|
||||
static string UrlUTF8Decode(const string &str); //urlutf8解码
|
||||
private:
|
||||
strCoding(void);
|
||||
virtual ~strCoding(void);
|
||||
static inline char CharToInt(char ch);
|
||||
static inline char StrToBin(const char *str);
|
||||
};
|
||||
|
||||
} /* namespace Http */
|
||||
} /* namespace ZL */
|
||||
|
||||
#endif /* SRC_HTTP_STRCODING_H_ */
|
||||
Reference in New Issue
Block a user