Re: strings with > 4000 characters
Mojca Miklavec <mojca.miklavec.lists <at> gmail.com>
2011-09-12 18:41:56 GMT
On Mon, Sep 12, 2011 at 17:36, Dan Luecking wrote:
> At 03:43 AM 9/12/2011, Mojca Miklavec wrote:
>> Dear list,
>> I would like to ask if there is any trick that enables splitting
>> strings with > 4000 characters.
>> I would like to use
>> substring (10000,10006) of some string
>> When drawing functions, one can scale down calculations towards lower
>> numbers and with some special care, one can still make it work. Is
>> there any similar trick (excluding metapost 2) for strings?
> You might store long strings as arrays of shorter
> strings. For example, if a long string is stored
> as S0, S1, S2, ... S[N], and each one (except the
> last) is 1000 characters long (say), then characters
> between 10000 and 10006 of the whole could be
> accessed as
> substring (0, 6) of S10.
If I don't come up with something better, I will probably end up using
> The problem is not so much the length of the string as
> the size of the numbers required to index it.
I got that :(