truncated result after replace
Status: Beta
Brought to you by:
jengelhart
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
*/
text file for source, a result output and code cut
Logged In: NO
for additional questions please write to: alexey.galygin (at) gmail.com