view src/testdir/test69.ok @ 5964:238f5027830c v7.4.323

updated for version 7.4.323 Problem: Substitute() with zero width pattern breaks multi-byte character. Solution: Take multi-byte character size into account. (Yukihiro Nakadaira)
author Bram Moolenaar <bram@vim.org>
date Thu, 12 Jun 2014 18:39:22 +0200
parents a1c07956171a
children 1090d6637cfd
line wrap: on
line source

Results of test69:


{
XYZ
abc
XYZ

XYZ
abc
XYZ
}


{


a

a







a

a




}


{


a

a




a

ab

abc

ab

c
ab





a

a




a

ab

abc

ab

c
ab


}


{


  a



  a
}


{


a



a
}


{

Xa
Xa
XY
XY
XY
XZ
X Y
X Y
X Z
XX
XXa
XXY


Xa
Xa
XY
XY
XY
XZ
X Y
X Y
X Z
XX
XXa
XXY
}


{

a
}


{
 four
}

ra test
aaaa
aaa


áx


byteidx
[0, 1, 3, 4, -1]
[0, 1, 4, 5, -1]
byteidxcomp
[0, 1, 3, 4, -1]
[0, 1, 2, 4, 5, -1]


substitute
a1a2a3a