Mercurial > octave
changeset 27366:4fef3ab19046
Remove input checks from internal unicode2native, native2unicode functions (bug #56805).
* strfns.cc (F__unicode2native__, F__native2unicode__): Remove input checks.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 03 Sep 2019 19:56:08 +0200 |
parents | 8995cc348866 |
children | fd9caca28fcc |
files | libinterp/corefcn/strfns.cc |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/strfns.cc Tue Sep 03 19:54:30 2019 +0200 +++ b/libinterp/corefcn/strfns.cc Tue Sep 03 19:56:08 2019 +0200 @@ -886,7 +886,7 @@ if (args(0).is_string ()) return ovl (args(0)); - std::string tmp = args(1).xstring_value ("CODEPAGE must be a string"); + std::string tmp = args(1).string_value (); const char *codepage = (tmp.empty () ? octave_locale_charset_wrapper () : tmp.c_str ()); @@ -938,11 +938,11 @@ if (nargin != 2) print_usage (); - std::string tmp = args(1).xstring_value ("CODEPAGE must be a string"); + std::string tmp = args(1).string_value (); const char *codepage = (tmp.empty () ? octave_locale_charset_wrapper () : tmp.c_str ()); - charNDArray utf8_str = args(0).xchar_array_value ("UTF8_STR must be a string"); + charNDArray utf8_str = args(0).char_array_value (); const uint8_t *src = reinterpret_cast<const uint8_t *> (utf8_str.data ()); size_t srclen = utf8_str.numel ();