View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001639 | JEDI VCL | 00 JVCL Components | public | 2004-04-14 17:52 | 2004-04-15 00:56 |
Reporter | anonymous | Assigned To | AHUser | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0001639: Unit: JvWStrUtils function: StrPosW | ||||
Description | WideChar search incorrect. After first char found, inital offset for testing remaining string was set to first char again (I = 0), not 2nd (I = 1). cf initial P offset = Result + 1. Approx line 404 (Unit last modified date: 2004-02-13). Fix provided here... | ||||
Additional Information | function StrPosW(S, SubStr: PWideChar): PWideChar; <snip> while Result[0] <> #0 do begin if Result[0] <> SubStr[0] then Inc(Result) else begin P := Result + 1; I := 1; //<<<< FIX (was I := 0;) while (P[0] <> #0) and (P[0] = SubStr[I]) do begin Inc(I); Inc(P); end; <snip> | ||||
Tags | No tags attached. | ||||