File tree Expand file tree Collapse file tree 5 files changed +13
-2
lines changed Expand file tree Collapse file tree 5 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 88#include < ctgmath>
99#include < cassert>
1010#include < iomanip>
11- #include < utf8.h>
1211#include < iostream>
1312#include < clocale>
1413
@@ -370,7 +369,7 @@ class LIBSCRATCHCPP_EXPORT Value
370369 };
371370
372371 /* ! Returns the UTF-16 representation of the value. */
373- std::u16string toUtf16 () const { return utf8::utf8to16 ( toString ()); } ;
372+ std::u16string toUtf16 () const ;
374373
375374 /* ! Adds the given value to the value. */
376375 void add (const Value &v)
Original file line number Diff line number Diff line change 66#include < scratchcpp/list.h>
77#include < iostream>
88#include < cassert>
9+ #include < utf8.h>
910
1011#include " virtualmachine_p.h"
1112#include " internal/randomgenerator.h"
Original file line number Diff line number Diff line change 11target_sources (scratchcpp
22 PRIVATE
3+ value .cpp
34 target .cpp
45 target_p.cpp
56 target_p.h
Original file line number Diff line number Diff line change 1+ #include < scratchcpp/value.h>
2+ #include < utf8.h>
3+
4+ using namespace libscratchcpp ;
5+
6+ std::u16string Value::toUtf16 () const
7+ {
8+ return utf8::utf8to16 (toString ());
9+ }
Original file line number Diff line number Diff line change 11#include < scratchcpp/value.h>
2+ #include < utf8.h>
23
34#include " ../common.h"
45
You can’t perform that action at this time.
0 commit comments