@@ -255,23 +255,31 @@ end subroutine json_file_print_error_message
255255
256256 subroutine initialize_json_core_in_file (me ,verbose ,compact_reals ,&
257257 print_signs ,real_format ,spaces_per_tab ,&
258- strict_type_checking )
258+ strict_type_checking ,&
259+ trailing_spaces_significant ,&
260+ case_sensitive_keys )
259261
260262 implicit none
261263
262264 class(json_file),intent (inout ) :: me
263265 logical (LK),intent (in ),optional :: verbose ! ! mainly useful for debugging (default is false)
264266 logical (LK),intent (in ),optional :: compact_reals ! ! to compact the real number strings for output (default is true)
265267 logical (LK),intent (in ),optional :: print_signs ! ! always print numeric sign (default is false)
266- character (len =* , kind= CDK),intent (in ),optional :: real_format ! ! Real number format: 'E' [default], '*', 'G', 'EN', or 'ES'
267- integer ,intent (in ),optional :: spaces_per_tab ! ! number of spaces per tab for indenting (default is 2)
268+ character (kind= CDK,len =* ),intent (in ),optional :: real_format ! ! Real number format: 'E' [default], '*', 'G', 'EN', or 'ES'
269+ integer (IK) ,intent (in ),optional :: spaces_per_tab ! ! number of spaces per tab for indenting (default is 2)
268270 logical (LK),intent (in ),optional :: strict_type_checking ! ! if true, no integer, double, or logical type
269271 ! ! conversions are done for the `get` routines
270272 ! ! (default is false)
273+ logical (LK),intent (in ),optional :: trailing_spaces_significant ! ! for name and path comparisons, is trailing
274+ ! ! space to be considered significant.
275+ logical (LK),intent (in ),optional :: case_sensitive_keys ! ! for name and path comparisons, are they
276+ ! ! case sensitive.
271277
272278 call me% json% initialize(verbose,compact_reals,&
273279 print_signs,real_format,spaces_per_tab,&
274- strict_type_checking)
280+ strict_type_checking,&
281+ trailing_spaces_significant,&
282+ case_sensitive_keys)
275283
276284 end subroutine initialize_json_core_in_file
277285! *****************************************************************************************
@@ -289,7 +297,9 @@ end subroutine initialize_json_core_in_file
289297
290298 function initialize_json_file (p ,verbose ,compact_reals ,&
291299 print_signs ,real_format ,spaces_per_tab ,&
292- strict_type_checking ) result(file_object)
300+ strict_type_checking ,&
301+ trailing_spaces_significant ,&
302+ case_sensitive_keys ) result(file_object)
293303
294304 implicit none
295305
@@ -299,15 +309,21 @@ function initialize_json_file(p,verbose,compact_reals,&
299309 logical (LK),intent (in ),optional :: verbose ! ! mainly useful for debugging (default is false)
300310 logical (LK),intent (in ),optional :: compact_reals ! ! to compact the real number strings for output (default is true)
301311 logical (LK),intent (in ),optional :: print_signs ! ! always print numeric sign (default is false)
302- character (len =* , kind= CDK),intent (in ),optional :: real_format ! ! Real number format: 'E' [default], '*', 'G', 'EN', or 'ES'
303- integer ,intent (in ),optional :: spaces_per_tab ! ! number of spaces per tab for indenting (default is 2)
312+ character (kind= CDK,len =* ),intent (in ),optional :: real_format ! ! Real number format: 'E' [default], '*', 'G', 'EN', or 'ES'
313+ integer (IK) ,intent (in ),optional :: spaces_per_tab ! ! number of spaces per tab for indenting (default is 2)
304314 logical (LK),intent (in ),optional :: strict_type_checking ! ! if true, no integer, double, or logical type
305315 ! ! conversions are done for the `get` routines
306316 ! ! (default is false)
317+ logical (LK),intent (in ),optional :: trailing_spaces_significant ! ! for name and path comparisons, is trailing
318+ ! ! space to be considered significant.
319+ logical (LK),intent (in ),optional :: case_sensitive_keys ! ! for name and path comparisons, are they
320+ ! ! case sensitive.
307321
308322 call file_object% initialize(verbose,compact_reals,&
309323 print_signs,real_format,spaces_per_tab,&
310- strict_type_checking)
324+ strict_type_checking,&
325+ trailing_spaces_significant,&
326+ case_sensitive_keys)
311327
312328 if (present (p)) file_object% p = > p
313329
0 commit comments