mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
fix some unicode constants
This commit is contained in:
parent
7cce3e4d42
commit
d17f967e66
|
@ -19,10 +19,13 @@ namespace sol {
|
||||||
};
|
};
|
||||||
|
|
||||||
inline const string_view& to_string(error_code ec) {
|
inline const string_view& to_string(error_code ec) {
|
||||||
static const string_view storage[4] = {
|
static const string_view storage[7] = {
|
||||||
"ok",
|
"ok",
|
||||||
"invalid code points",
|
"invalid code points",
|
||||||
"invalid code unit",
|
"invalid code unit",
|
||||||
|
"invalid leading surrogate",
|
||||||
|
"invalid trailing surrogate",
|
||||||
|
"sequence too short",
|
||||||
"overlong sequence"
|
"overlong sequence"
|
||||||
};
|
};
|
||||||
return storage[static_cast<std::size_t>(ec)];
|
return storage[static_cast<std::size_t>(ec)];
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// This file was generated with a script.
|
// This file was generated with a script.
|
||||||
// Generated 2019-04-06 01:26:37.932828 UTC
|
// Generated 2019-04-08 03:11:15.372045 UTC
|
||||||
// This header was generated with sol v3.0.1-beta2 (revision 2f76078)
|
// This header was generated with sol v3.0.1-beta2 (revision 7cce3e4)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP
|
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// This file was generated with a script.
|
// This file was generated with a script.
|
||||||
// Generated 2019-04-06 01:26:37.624327 UTC
|
// Generated 2019-04-08 03:11:10.821035 UTC
|
||||||
// This header was generated with sol v3.0.1-beta2 (revision 2f76078)
|
// This header was generated with sol v3.0.1-beta2 (revision 7cce3e4)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||||
|
@ -11118,10 +11118,13 @@ namespace sol {
|
||||||
};
|
};
|
||||||
|
|
||||||
inline const string_view& to_string(error_code ec) {
|
inline const string_view& to_string(error_code ec) {
|
||||||
static const string_view storage[4] = {
|
static const string_view storage[7] = {
|
||||||
"ok",
|
"ok",
|
||||||
"invalid code points",
|
"invalid code points",
|
||||||
"invalid code unit",
|
"invalid code unit",
|
||||||
|
"invalid leading surrogate",
|
||||||
|
"invalid trailing surrogate",
|
||||||
|
"sequence too short",
|
||||||
"overlong sequence"
|
"overlong sequence"
|
||||||
};
|
};
|
||||||
return storage[static_cast<std::size_t>(ec)];
|
return storage[static_cast<std::size_t>(ec)];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user