@@ -246,10 +246,10 @@ module json_file_module
246
246
247
247
generic,public :: assignment (= ) = > assign_json_file,&
248
248
assign_json_file_to_string,&
249
- assign_string_to_json_file
249
+ MAYBEWRAP( assign_string_to_json_file)
250
250
procedure :: assign_json_file
251
251
procedure ,pass(me) :: assign_json_file_to_string
252
- procedure :: assign_string_to_json_file
252
+ procedure :: MAYBEWRAP( assign_string_to_json_file)
253
253
254
254
! ***************************************************
255
255
! private routines
@@ -1167,7 +1167,7 @@ subroutine assign_json_file_to_string(str,me)
1167
1167
type (json_core) :: core_copy ! ! a copy of `core` from `me`
1168
1168
1169
1169
if (me% core% failed() .or. .not. associated (me% p)) then
1170
- str = ' '
1170
+ str = CK_ ' '
1171
1171
else
1172
1172
1173
1173
! This is sort of a hack. Since `me` has to have `intent(in)`
@@ -1179,7 +1179,7 @@ subroutine assign_json_file_to_string(str,me)
1179
1179
core_copy = me% core ! copy the parser settings
1180
1180
1181
1181
call core_copy% serialize(me% p,str)
1182
- if (me% core% failed()) str = ' '
1182
+ if (me% core% failed()) str = CK_ ' '
1183
1183
1184
1184
end if
1185
1185
@@ -1206,6 +1206,23 @@ subroutine assign_string_to_json_file(me,str)
1206
1206
end subroutine assign_string_to_json_file
1207
1207
! *****************************************************************************************
1208
1208
1209
+ ! *****************************************************************************************
1210
+ ! > author: Jacob Williams
1211
+ !
1212
+ ! Alternate version of [[assign_string_to_json_file]], where "str" is kind=CDK.
1213
+
1214
+ subroutine wrap_assign_string_to_json_file (me ,str )
1215
+
1216
+ implicit none
1217
+
1218
+ class(json_file),intent (inout ) :: me
1219
+ character (kind= CDK,len=* ),intent (in ) :: str
1220
+
1221
+ call me% assign_string_to_json_file(to_unicode(str))
1222
+
1223
+ end subroutine wrap_assign_string_to_json_file
1224
+ ! *****************************************************************************************
1225
+
1209
1226
! *****************************************************************************************
1210
1227
! > author: Jacob Williams
1211
1228
!
0 commit comments