Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
djinni
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
djinni
Commits
5f3d02e0
Commit
5f3d02e0
authored
Mar 22, 2015
by
Miro Knejp
Committed by
Jacob Potter
May 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract string translation into a predefined support lib helper class
parent
477d629a
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
44 additions
and
49 deletions
+44
-49
src/source/ObjcppGenerator.scala
src/source/ObjcppGenerator.scala
+4
-5
support-lib/objc/DJIMarshal+Private.h
support-lib/objc/DJIMarshal+Private.h
+18
-0
test-suite/generated-src/objc/DBClientInterfaceObjcProxy.mm
test-suite/generated-src/objc/DBClientInterfaceObjcProxy.mm
+1
-3
test-suite/generated-src/objc/DBClientReturnedRecord.mm
test-suite/generated-src/objc/DBClientReturnedRecord.mm
+2
-4
test-suite/generated-src/objc/DBConstants.mm
test-suite/generated-src/objc/DBConstants.mm
+2
-4
test-suite/generated-src/objc/DBMapDateRecord.mm
test-suite/generated-src/objc/DBMapDateRecord.mm
+2
-4
test-suite/generated-src/objc/DBMapListRecord.mm
test-suite/generated-src/objc/DBMapListRecord.mm
+2
-4
test-suite/generated-src/objc/DBMapRecord.mm
test-suite/generated-src/objc/DBMapRecord.mm
+2
-4
test-suite/generated-src/objc/DBNestedCollection.mm
test-suite/generated-src/objc/DBNestedCollection.mm
+2
-4
test-suite/generated-src/objc/DBRecordWithDerivings.mm
test-suite/generated-src/objc/DBRecordWithDerivings.mm
+2
-4
test-suite/generated-src/objc/DBSetRecord.mm
test-suite/generated-src/objc/DBSetRecord.mm
+2
-4
test-suite/generated-src/objc/DBTestHelpers.mm
test-suite/generated-src/objc/DBTestHelpers.mm
+5
-9
No files found.
src/source/ObjcppGenerator.scala
View file @
5f3d02e0
...
...
@@ -619,10 +619,8 @@ class ObjcppGenerator(spec: Spec) extends Generator(spec) {
case
"f64"
=>
w
.
wl
(
s
"$objcType$objcIdent = ::djinni::F64$boxed::fromCpp($cppIdent);"
)
case
"bool"
=>
w
.
wl
(
s
"$objcType$objcIdent = ::djinni::Bool$boxed::fromCpp($cppIdent);"
)
}
case
MString
=>
w
.
wl
(
s
"$objcType$objcIdent = [[NSString alloc] initWithBytes:$cppIdent.data()"
).
nestedN
(
2
)
{
w
.
wl
(
s
"length:$cppIdent.length()"
)
w
.
wl
(
"encoding:NSUTF8StringEncoding];"
)
}
case
MString
=>
w
.
wl
(
s
"$objcType$objcIdent = ::djinni::String::fromCpp($cppIdent);"
)
case
MDate
=>
{
w
.
wl
(
s
"$objcType$objcIdent = [NSDate dateWithTimeIntervalSince1970:"
).
nestedN
(
2
)
{
w
.
wl
(
s
"std::chrono::duration_cast<std::chrono::duration<double>>($cppIdent.time_since_epoch()).count()];"
)
...
...
@@ -733,7 +731,8 @@ class ObjcppGenerator(spec: Spec) extends Generator(spec) {
case
"f64"
=>
w
.
wl
(
s
"$cppType $cppIdent = ::djinni::F64$boxed::toCpp($objcIdent);"
)
case
"bool"
=>
w
.
wl
(
s
"$cppType $cppIdent = ::djinni::Bool$boxed::toCpp($objcIdent);"
)
}
case
MString
=>
w
.
wl
(
s
"$cppType $cppIdent([$objcIdent UTF8String], [$objcIdent lengthOfBytesUsingEncoding:NSUTF8StringEncoding]);"
)
case
MString
=>
w
.
wl
(
s
"$cppType $cppIdent = ::djinni::String::toCpp($objcIdent);"
)
case
MDate
=>
w
.
wl
(
s
"$cppType $cppIdent = ::djinni::convert_date([$objcIdent timeIntervalSince1970]);"
)
case
MBinary
=>
w
.
wl
(
s
"$cppType $cppIdent([$objcIdent length]);"
)
...
...
support-lib/objc/DJIMarshal+Private.h
View file @
5f3d02e0
...
...
@@ -9,6 +9,7 @@
#pragma once
#import <Foundation/Foundation.h>
#include <cstdint>
#include <string>
static_assert
(
__has_feature
(
objc_arc
),
"Djinni requires ARC to be enabled for this file"
);
...
...
@@ -92,4 +93,21 @@ struct Enum {
};
};
struct
String
{
using
CppType
=
std
::
string
;
using
ObjcType
=
NSString
*
;
using
Boxed
=
String
;
static
CppType
toCpp
(
ObjcType
string
)
{
return
{[
string
UTF8String
],
[
string
lengthOfBytesUsingEncoding
:
NSUTF8StringEncoding
]};
}
static
ObjcType
fromCpp
(
const
CppType
&
string
)
{
assert
(
string
.
size
()
<=
std
::
numeric_limits
<
NSUInteger
>::
max
());
// Using the pointer from .data() on an empty string is UB
return
string
.
empty
()
?
@""
:
[[
NSString
alloc
]
initWithBytes
:
string
.
data
()
length
:
string
.
size
()
encoding
:
NSUTF8StringEncoding
];
}
};
}
// namespace djinni
test-suite/generated-src/objc/DBClientInterfaceObjcProxy.mm
View file @
5f3d02e0
...
...
@@ -28,9 +28,7 @@ ClientReturnedRecord ClientInterfaceObjcProxy::get_record (int64_t record_id, co
{
@autoreleasepool
{
int64_t
cpp_record_id
=
::
djinni
::
I64
::
fromCpp
(
record_id
);
NSString
*
cpp_utf8string
=
[[
NSString
alloc
]
initWithBytes
:
utf8string
.
data
()
length:
utf8string
.
length
()
encoding:
NSUTF8StringEncoding
];
NSString
*
cpp_utf8string
=
::
djinni
::
String
::
fromCpp
(
utf8string
);
DBClientReturnedRecord
*
objcRet
=
[
_objcRef
getRecord
:
cpp_record_id
utf8string
:
cpp_utf8string
];
ClientReturnedRecord
cppRet
=
std
::
move
([
objcRet
cppClientReturnedRecord
]);
return
cppRet
;
...
...
test-suite/generated-src/objc/DBClientReturnedRecord.mm
View file @
5f3d02e0
...
...
@@ -34,9 +34,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
{
if
(
self
=
[
super
init
])
{
_recordId
=
::
djinni
::
I64
::
fromCpp
(
clientReturnedRecord
.
record_id
);
_content
=
[[
NSString
alloc
]
initWithBytes
:
clientReturnedRecord
.
content
.
data
()
length:
clientReturnedRecord
.
content
.
length
()
encoding:
NSUTF8StringEncoding
];
_content
=
::
djinni
::
String
::
fromCpp
(
clientReturnedRecord
.
content
);
}
return
self
;
}
...
...
@@ -44,7 +42,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
-
(
ClientReturnedRecord
)
cppClientReturnedRecord
{
int64_t
recordId
=
::
djinni
::
I64
::
toCpp
(
_recordId
);
std
::
string
content
([
_content
UTF8String
],
[
_content
lengthOfBytesUsingEncoding
:
NSUTF8StringEncoding
]
);
std
::
string
content
=
::
djinni
::
String
::
toCpp
(
_content
);
return
ClientReturnedRecord
(
std
::
move
(
recordId
),
std
::
move
(
content
));
...
...
test-suite/generated-src/objc/DBConstants.mm
View file @
5f3d02e0
...
...
@@ -58,9 +58,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
{
if
(
self
=
[
super
init
])
{
_someInteger
=
::
djinni
::
I32
::
fromCpp
(
constants
.
some_integer
);
_someString
=
[[
NSString
alloc
]
initWithBytes
:
constants
.
some_string
.
data
()
length:
constants
.
some_string
.
length
()
encoding:
NSUTF8StringEncoding
];
_someString
=
::
djinni
::
String
::
fromCpp
(
constants
.
some_string
);
}
return
self
;
}
...
...
@@ -68,7 +66,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
-
(
Constants
)
cppConstants
{
int32_t
someInteger
=
::
djinni
::
I32
::
toCpp
(
_someInteger
);
std
::
string
someString
([
_someString
UTF8String
],
[
_someString
lengthOfBytesUsingEncoding
:
NSUTF8StringEncoding
]
);
std
::
string
someString
=
::
djinni
::
String
::
toCpp
(
_someString
);
return
Constants
(
std
::
move
(
someInteger
),
std
::
move
(
someString
));
...
...
test-suite/generated-src/objc/DBMapDateRecord.mm
View file @
5f3d02e0
...
...
@@ -47,9 +47,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
std
::
vector
<
NSDate
*>
_datesByIdTempValueVector
;
_datesByIdTempValueVector
.
reserve
(
mapDateRecord
.
dates_by_id
.
size
());
for
(
const
auto
&
cppPair_0
:
mapDateRecord
.
dates_by_id
)
{
NSString
*
objcKey_0
=
[[
NSString
alloc
]
initWithBytes
:
cppPair_0
.
first
.
data
()
length:
cppPair_0
.
first
.
length
()
encoding:
NSUTF8StringEncoding
];
NSString
*
objcKey_0
=
::
djinni
::
String
::
fromCpp
(
cppPair_0
.
first
);
NSDate
*
objcValue_0
=
[
NSDate
dateWithTimeIntervalSince1970
:
std
:
:
chrono
::
duration_cast
<
std
::
chrono
::
duration
<
double
>>
(
cppPair_0
.
second
.
time_since_epoch
()).
count
()];
_datesByIdTempKeyVector
.
push_back
(
objcKey_0
);
...
...
@@ -64,7 +62,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
{
std
::
unordered_map
<
std
::
string
,
std
::
chrono
::
system_clock
::
time_point
>
datesById
;
for
(
id
objcKey_0
in
_datesById
)
{
std
::
string
cppKey_0
([
objcKey_0
UTF8String
],
[
objcKey_0
lengthOfBytesUsingEncoding
:
NSUTF8StringEncoding
]
);
std
::
string
cppKey_0
=
::
djinni
::
String
::
toCpp
(
objcKey_0
);
std
::
chrono
::
system_clock
::
time_point
cppValue_0
=
::
djinni
::
convert_date
([[
_datesById
objectForKey
:
objcKey_0
]
timeIntervalSince1970
]);
datesById
.
emplace
(
std
::
move
(
cppKey_0
),
std
::
move
(
cppValue_0
));
}
...
...
test-suite/generated-src/objc/DBMapListRecord.mm
View file @
5f3d02e0
...
...
@@ -57,9 +57,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
std
::
vector
<
NSNumber
*>
objcValue_0TempValueVector
;
objcValue_0TempValueVector
.
reserve
(
cppValue_0
.
size
());
for
(
const
auto
&
cppPair_1
:
cppValue_0
)
{
NSString
*
objcKey_1
=
[[
NSString
alloc
]
initWithBytes
:
cppPair_1
.
first
.
data
()
length:
cppPair_1
.
first
.
length
()
encoding:
NSUTF8StringEncoding
];
NSString
*
objcKey_1
=
::
djinni
::
String
::
fromCpp
(
cppPair_1
.
first
);
NSNumber
*
objcValue_1
=
::
djinni
::
I64
::
Boxed
::
fromCpp
(
cppPair_1
.
second
);
objcValue_0TempKeyVector
.
push_back
(
objcKey_1
);
objcValue_0TempValueVector
.
push_back
(
objcValue_1
);
...
...
@@ -79,7 +77,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
for
(
NSDictionary
*
objcValue_0
in
_mapList
)
{
std
::
unordered_map
<
std
::
string
,
int64_t
>
cppValue_0
;
for
(
id
objcKey_1
in
objcValue_0
)
{
std
::
string
cppKey_1
([
objcKey_1
UTF8String
],
[
objcKey_1
lengthOfBytesUsingEncoding
:
NSUTF8StringEncoding
]
);
std
::
string
cppKey_1
=
::
djinni
::
String
::
toCpp
(
objcKey_1
);
int64_t
cppValue_1
=
::
djinni
::
I64
::
Boxed
::
toCpp
([
objcValue_0
objectForKey
:
objcKey_1
]);
cppValue_0
.
emplace
(
std
::
move
(
cppKey_1
),
std
::
move
(
cppValue_1
));
}
...
...
test-suite/generated-src/objc/DBMapRecord.mm
View file @
5f3d02e0
...
...
@@ -47,9 +47,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
std
::
vector
<
NSNumber
*>
_mapTempValueVector
;
_mapTempValueVector
.
reserve
(
mapRecord
.
map
.
size
());
for
(
const
auto
&
cppPair_0
:
mapRecord
.
map
)
{
NSString
*
objcKey_0
=
[[
NSString
alloc
]
initWithBytes
:
cppPair_0
.
first
.
data
()
length:
cppPair_0
.
first
.
length
()
encoding:
NSUTF8StringEncoding
];
NSString
*
objcKey_0
=
::
djinni
::
String
::
fromCpp
(
cppPair_0
.
first
);
NSNumber
*
objcValue_0
=
::
djinni
::
I64
::
Boxed
::
fromCpp
(
cppPair_0
.
second
);
_mapTempKeyVector
.
push_back
(
objcKey_0
);
_mapTempValueVector
.
push_back
(
objcValue_0
);
...
...
@@ -63,7 +61,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
{
std
::
unordered_map
<
std
::
string
,
int64_t
>
map
;
for
(
id
objcKey_0
in
_map
)
{
std
::
string
cppKey_0
([
objcKey_0
UTF8String
],
[
objcKey_0
lengthOfBytesUsingEncoding
:
NSUTF8StringEncoding
]
);
std
::
string
cppKey_0
=
::
djinni
::
String
::
toCpp
(
objcKey_0
);
int64_t
cppValue_0
=
::
djinni
::
I64
::
Boxed
::
toCpp
([
_map
objectForKey
:
objcKey_0
]);
map
.
emplace
(
std
::
move
(
cppKey_0
),
std
::
move
(
cppValue_0
));
}
...
...
test-suite/generated-src/objc/DBNestedCollection.mm
View file @
5f3d02e0
...
...
@@ -51,9 +51,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
std
::
vector
<
NSString
*>
objcValue_0TempVector
;
objcValue_0TempVector
.
reserve
(
cppValue_0
.
size
());
for
(
const
auto
&
cppValue_1
:
cppValue_0
)
{
NSString
*
objcValue_1
=
[[
NSString
alloc
]
initWithBytes
:
cppValue_1
.
data
()
length:
cppValue_1
.
length
()
encoding:
NSUTF8StringEncoding
];
NSString
*
objcValue_1
=
::
djinni
::
String
::
fromCpp
(
cppValue_1
);
objcValue_0TempVector
.
push_back
(
objcValue_1
);
}
NSSet
*
objcValue_0
=
[
NSSet
setWithObjects
:
&
objcValue_0TempVector
[
0
]
count
:
objcValue_0TempVector
.
size
()];
...
...
@@ -71,7 +69,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
for
(
NSSet
*
objcValue_0
in
_setList
)
{
std
::
unordered_set
<
std
::
string
>
cppValue_0
;
for
(
NSString
*
objcValue_1
in
objcValue_0
)
{
std
::
string
cppValue_1
([
objcValue_1
UTF8String
],
[
objcValue_1
lengthOfBytesUsingEncoding
:
NSUTF8StringEncoding
]
);
std
::
string
cppValue_1
=
::
djinni
::
String
::
toCpp
(
objcValue_1
);
cppValue_0
.
insert
(
std
::
move
(
cppValue_1
));
}
setList
.
push_back
(
std
::
move
(
cppValue_0
));
...
...
test-suite/generated-src/objc/DBRecordWithDerivings.mm
View file @
5f3d02e0
...
...
@@ -34,9 +34,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
{
if
(
self
=
[
super
init
])
{
_key1
=
::
djinni
::
I32
::
fromCpp
(
recordWithDerivings
.
key1
);
_key2
=
[[
NSString
alloc
]
initWithBytes
:
recordWithDerivings
.
key2
.
data
()
length:
recordWithDerivings
.
key2
.
length
()
encoding:
NSUTF8StringEncoding
];
_key2
=
::
djinni
::
String
::
fromCpp
(
recordWithDerivings
.
key2
);
}
return
self
;
}
...
...
@@ -44,7 +42,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
-
(
RecordWithDerivings
)
cppRecordWithDerivings
{
int32_t
key1
=
::
djinni
::
I32
::
toCpp
(
_key1
);
std
::
string
key2
([
_key2
UTF8String
],
[
_key2
lengthOfBytesUsingEncoding
:
NSUTF8StringEncoding
]
);
std
::
string
key2
=
::
djinni
::
String
::
toCpp
(
_key2
);
return
RecordWithDerivings
(
std
::
move
(
key1
),
std
::
move
(
key2
));
...
...
test-suite/generated-src/objc/DBSetRecord.mm
View file @
5f3d02e0
...
...
@@ -41,9 +41,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
std
::
vector
<
NSString
*>
_setTempVector
;
_setTempVector
.
reserve
(
setRecord
.
set
.
size
());
for
(
const
auto
&
cppValue_0
:
setRecord
.
set
)
{
NSString
*
objcValue_0
=
[[
NSString
alloc
]
initWithBytes
:
cppValue_0
.
data
()
length:
cppValue_0
.
length
()
encoding:
NSUTF8StringEncoding
];
NSString
*
objcValue_0
=
::
djinni
::
String
::
fromCpp
(
cppValue_0
);
_setTempVector
.
push_back
(
objcValue_0
);
}
_set
=
[
NSSet
setWithObjects
:
&
_setTempVector
[
0
]
count
:
_setTempVector
.
size
()];
...
...
@@ -55,7 +53,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
{
std
::
unordered_set
<
std
::
string
>
set
;
for
(
NSString
*
objcValue_0
in
_set
)
{
std
::
string
cppValue_0
([
objcValue_0
UTF8String
],
[
objcValue_0
lengthOfBytesUsingEncoding
:
NSUTF8StringEncoding
]
);
std
::
string
cppValue_0
=
::
djinni
::
String
::
toCpp
(
objcValue_0
);
set
.
insert
(
std
::
move
(
cppValue_0
));
}
return
SetRecord
(
...
...
test-suite/generated-src/objc/DBTestHelpers.mm
View file @
5f3d02e0
...
...
@@ -106,9 +106,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
std
::
vector
<
NSNumber
*>
objcRetTempValueVector
;
objcRetTempValueVector
.
reserve
(
cppRet
.
size
());
for
(
const
auto
&
cppPair_0
:
cppRet
)
{
NSString
*
objcKey_0
=
[[
NSString
alloc
]
initWithBytes
:
cppPair_0
.
first
.
data
()
length:
cppPair_0
.
first
.
length
()
encoding:
NSUTF8StringEncoding
];
NSString
*
objcKey_0
=
::
djinni
::
String
::
fromCpp
(
cppPair_0
.
first
);
NSNumber
*
objcValue_0
=
::
djinni
::
I64
::
Boxed
::
fromCpp
(
cppPair_0
.
second
);
objcRetTempKeyVector
.
push_back
(
objcKey_0
);
objcRetTempValueVector
.
push_back
(
objcValue_0
);
...
...
@@ -122,7 +120,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
try
{
std
::
unordered_map
<
std
::
string
,
int64_t
>
cppM
;
for
(
id
objcKey_0
in
m
)
{
std
::
string
cppKey_0
([
objcKey_0
UTF8String
],
[
objcKey_0
lengthOfBytesUsingEncoding
:
NSUTF8StringEncoding
]
);
std
::
string
cppKey_0
=
::
djinni
::
String
::
toCpp
(
objcKey_0
);
int64_t
cppValue_0
=
::
djinni
::
I64
::
Boxed
::
toCpp
([
m
objectForKey
:
objcKey_0
]);
cppM
.
emplace
(
std
::
move
(
cppKey_0
),
std
::
move
(
cppValue_0
));
}
...
...
@@ -140,9 +138,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
std
::
vector
<
NSNumber
*>
objcRetTempValueVector
;
objcRetTempValueVector
.
reserve
(
cppRet
.
size
());
for
(
const
auto
&
cppPair_0
:
cppRet
)
{
NSString
*
objcKey_0
=
[[
NSString
alloc
]
initWithBytes
:
cppPair_0
.
first
.
data
()
length:
cppPair_0
.
first
.
length
()
encoding:
NSUTF8StringEncoding
];
NSString
*
objcKey_0
=
::
djinni
::
String
::
fromCpp
(
cppPair_0
.
first
);
NSNumber
*
objcValue_0
=
::
djinni
::
I64
::
Boxed
::
fromCpp
(
cppPair_0
.
second
);
objcRetTempKeyVector
.
push_back
(
objcKey_0
);
objcRetTempValueVector
.
push_back
(
objcValue_0
);
...
...
@@ -156,7 +152,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
try
{
std
::
unordered_map
<
std
::
string
,
int64_t
>
cppM
;
for
(
id
objcKey_0
in
m
)
{
std
::
string
cppKey_0
([
objcKey_0
UTF8String
],
[
objcKey_0
lengthOfBytesUsingEncoding
:
NSUTF8StringEncoding
]
);
std
::
string
cppKey_0
=
::
djinni
::
String
::
toCpp
(
objcKey_0
);
int64_t
cppValue_0
=
::
djinni
::
I64
::
Boxed
::
toCpp
([
m
objectForKey
:
objcKey_0
]);
cppM
.
emplace
(
std
::
move
(
cppKey_0
),
std
::
move
(
cppValue_0
));
}
...
...
@@ -202,7 +198,7 @@ static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for th
std
::
unordered_map
<
color
,
std
::
string
>
cppM
;
for
(
id
objcKey_0
in
m
)
{
color
cppKey_0
=
::
djinni
::
Enum
<
color
,
DBColor
>::
Boxed
::
toCpp
(
objcKey_0
);
std
::
string
cppValue_0
([[
m
objectForKey
:
objcKey_0
]
UTF8String
],
[[
m
objectForKey
:
objcKey_0
]
lengthOfBytesUsingEncoding
:
NSUTF8StringEncoding
]);
std
::
string
cppValue_0
=
::
djinni
::
String
::
toCpp
([
m
objectForKey
:
objcKey_0
]);
cppM
.
emplace
(
std
::
move
(
cppKey_0
),
std
::
move
(
cppValue_0
));
}
TestHelpers
::
check_enum_map
(
std
::
move
(
cppM
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment