What is the maximum string length of a string variable on Android and iOS?

What is the maximum string length of a string variable on Android and iOS? Does anyone know?

No idea, but I am curious as to why you need to know, and why you need looooooooooooooooooooong string sizes :slight_smile:

According to posts on StackOverflow, they can theoretically hold 2-4 billion characters:  

https://stackoverflow.com/questions/6482641/what-is-the-maximum-length-of-an-nsstring-object

https://stackoverflow.com/questions/15369117/what-is-the-maximum-amount-of-data-that-a-string-can-hold-in-java

However as pointed out in the second link the OS will limit the heap to somewhere between 16-256MB, which leads to a practical limit of 4-64 million characters (I don’t believe that Lua imposes any limits on top of these). If you need any more than that, I’d be shocked.

No idea, but I am curious as to why you need to know, and why you need looooooooooooooooooooong string sizes :slight_smile:

According to posts on StackOverflow, they can theoretically hold 2-4 billion characters:  

https://stackoverflow.com/questions/6482641/what-is-the-maximum-length-of-an-nsstring-object

https://stackoverflow.com/questions/15369117/what-is-the-maximum-amount-of-data-that-a-string-can-hold-in-java

However as pointed out in the second link the OS will limit the heap to somewhere between 16-256MB, which leads to a practical limit of 4-64 million characters (I don’t believe that Lua imposes any limits on top of these). If you need any more than that, I’d be shocked.