forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-5648: [C++] Avoid using codecvt
Some antiquated C++ build chains miss the standard <codecvt> header. Use a small vendored UTF8 implementation instead. Author: Antoine Pitrou <[email protected]> Closes apache#4616 from pitrou/ARROW-5648-simple-utf8 and squashes the following commits: 54b1b2f <Antoine Pitrou> ARROW-5648: Avoid using codecvt
- Loading branch information
Showing
7 changed files
with
815 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
#include <cstdint> | ||
#include <cstring> | ||
#include <memory> | ||
#include <string> | ||
|
||
#include "arrow/status.h" | ||
#include "arrow/util/macros.h" | ||
|
@@ -31,6 +32,13 @@ | |
namespace arrow { | ||
namespace util { | ||
|
||
// Convert a UTF8 string to a wstring (either UTF16 or UTF32, depending | ||
// on the wchar_t width). | ||
ARROW_EXPORT Status UTF8ToWideString(const std::string& source, std::wstring* out); | ||
|
||
// Similarly, convert a wstring to a UTF8 string. | ||
ARROW_EXPORT Status WideStringToUTF8(const std::wstring& source, std::string* out); | ||
|
||
namespace internal { | ||
|
||
// Copyright (c) 2008-2010 Bjoern Hoehrmann <[email protected]> | ||
|
Oops, something went wrong.