|
From: Steven R. L. <sr...@ic...> - 2005-05-27 17:35:32
|
Are you doing the original conversion in ICU? If so, you can use the ICU converter callback interface to do the warning as conversion is done. See the icu/source/samples/ucnv/convsamp.cpp and function convsample_21_didSubstitute() , implementation is in flagcb.c (Let me know ifyou have questions about using this.) Otherwise, I think indexOf would be faster than a regular expression. -s On 27 Mej 2005, at 10:01, Wang, June wrote: > We are trying to log a warning message whenever a Unicode > substitution character 0xFFFD or windows-1252 substitution > character 0x1A is found in data. Because we would like to check all > textual data in/out of DB, we have concern with the performance of > UnicodeString.indexOf()? Will using regular expression help the > performance? |