.ModelicaCompliance.Operators.Arithmetic.AddLargeStrings

Information

Tests that the tool can concatenate large strings, that strings concatenated in different ways are still equal, and that the lengths of the strings are as expected. Note that there is no maximum limit of string sizes in Modelica which essentially means the size is unlimited. This test uses a rather small limit of 65536 characters for practical reasons (making the size of the test small). That should also make it possible to run this test on a 16-bit platform (maybe there are some Modelica 16-bit embedded tools?). Reading files >1GB should be expected of a Modelica tool and indeed any modern programming language. If you fail this test, try to make sure your tool handles very large strings (architecture limit) rather than increasing the size arbitrarily.

Contents

NameDescription
 strlenLike strlen(3). Returns the length of the string in bytes.

Generated at 2024-11-21T19:25:40Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos