While SysUtils.StrScan() takes PWideChar const as the parameter, is there a StrScan() like built-in function for string/Unicodestring type?
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Plain old
Poswill work well enough for most cases. The second parameter will simply be a one-characterstringinstead of aChar.If the string you’re searching through will not have embedded null characters, then you can also use
StrScandirectly; just type-cast the string parameter toPChar.StrScanwill stop searching when it reaches the null character.