christian,

If you found a function that does what you need then of course use that. I spent some time looking at the various string classes and it looks to me like byte_string and unistring are part of the old String class. I think byte_string and unistring are currently '#defined' as String. The new replacement are OUstring and Ustring in the rtl libraries.

Gregg

[EMAIL PROTECTED] wrote:
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=15666





------- Additional comments from [EMAIL PROTECTED] Sat Feb 18 05:17:24 -0800 2006 -------
Gregg,

  
I looked at all the code and I think I can take the search method from the
String class and write a function that will take an array of chars and search
simultaneously for all of them.
    

Sorry, I must have missed something. As I mentioned, I already found
SearchChar() which does exactly this. Shouldn't I use this method of the warning
in string.hxx:
"THIS CODE IS DEPRECATED.  DO NOT USE IT IN ANY NEW CODE.
Use the string classes in rtl/ustring.hxx and rtl/ustrbuf.hxx (and
rtl/string.hxx and rtl/strbuf.hxx for byte-sized strings) instead."

I just discovered this while looking around because of your comment.

So if this SearchChar() method should be reimplemented in the String class, you
can of course do this. I don't get the difference between ByteString/UniString
and String at the moment (besides that String looks like it misses many
functions and isn't Unicode-capable).

Christian

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
  


--

Gregg Lebovitz
[EMAIL PROTECTED]

617 233-5504
Fax: 309 408-1476



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to