Menu

#16 truncated result after replace

open
5
2008-06-13
2008-06-13
Anonymous
No

after simple replacing some sequence in the sources string to another sequence, truncated result appears.
maybe there is some limits to source string size?

the demo code fragment attached:

// by using RegexKit (not Lite)

// ... loading source-utf-8.txt to theEntry string ...

theEntry = [theEntry stringByMatching:@"L0" replace:RKReplaceAll withReferenceString:@"L1"];

// ... saving a result to result-utf-8.txt ...

/*

MiF MBP: /tmp $ ls -lh source-utf-8.txt
-rw-r--r-- 1 MiF wheel 38K 14 Jun 01:26 source-utf-8.txt
MiF MBP: /tmp $ ls -lh result-utf-8.txt
-rw-r--r-- 1 MiF wheel 4,8K 14 Jun 01:26 result-utf-8.txt

*/

Discussion

  • Nobody/Anonymous

    text file for source, a result output and code cut

     
  • Nobody/Anonymous

    Logged In: NO

    for additional questions please write to: alexey.galygin (at) gmail.com

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.