The PosA function sometimes returns an incorrect result when the string being searched contains characters from both the Single Byte Character Set (SBCS) and Double Byte Character Set (DBCS). This occurs because the length of the string is incorrectly evaluated. Suppose the length of the string in characters before conversion to DBCS is M and the length of the string in bytes after conversion to DBCS is N. If the value of the start argument is greater than M but less than N, PosA incorrectly returns 0. If the search string is present in the string being searched but occurs after the first M bytes, PosA fails to find it. [CR 405127]
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |