mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Introduce CefString and cef_string_t implementations that support string type conversions and customization of the API string type (issue #146).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@145 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -5,21 +5,23 @@
|
||||
#ifndef _TRANSFER_UTIL_H
|
||||
#define _TRANSFER_UTIL_H
|
||||
|
||||
#include "include/cef_string.h"
|
||||
#include "include/cef_string_list.h"
|
||||
#include "include/cef_string_map.h"
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
// Copy contents from one list type to another.
|
||||
typedef std::vector<CefString> StringList;
|
||||
void transfer_string_list_contents(cef_string_list_t fromList,
|
||||
StringList& toList);
|
||||
void transfer_string_list_contents(const StringList& fromList,
|
||||
cef_string_list_t toList);
|
||||
|
||||
// Copy contents from one map type to another.
|
||||
typedef std::map<CefString, CefString> StringMap;
|
||||
void transfer_string_map_contents(cef_string_map_t fromMap,
|
||||
std::map<std::wstring, std::wstring>& toMap);
|
||||
void transfer_string_map_contents(const std::map<std::wstring, std::wstring>& fromMap,
|
||||
StringMap& toMap);
|
||||
void transfer_string_map_contents(const StringMap& fromMap,
|
||||
cef_string_map_t toMap);
|
||||
|
||||
// Copy the contents from one string type to another.
|
||||
void transfer_string_contents(const std::wstring& fromString,
|
||||
cef_string_t* toString);
|
||||
void transfer_string_contents(cef_string_t fromString, std::wstring& toString,
|
||||
bool freeFromString);
|
||||
|
||||
#endif // _TRANSFER_UTIL_H
|
||||
|
Reference in New Issue
Block a user