Closed Bug 92220 Opened 24 years ago Closed 24 years ago

combine duplicate code in comi18n.cpp and nsMsgImapSearch.cpp that checks if a string is really ASCII

Categories

(MailNews Core :: Internationalization, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla0.9.4

People

(Reporter: sspitzer, Assigned: nhottanscp)

Details

Attachments

(2 files)

combine duplicate code in comi18n.cpp and nsMsgImapSearch.cpp that checks if a string is really ASCII see nsMsgSearchOnlineMail::Encode() in nsMsgImapSearch.cpp and the code nhotta recently added to comi18n.cpp for bug #82591 there might be more, see http://lxr.mozilla.org/mozilla/search?string=0xFF80
nsMsgSearchOnlineMail::Encode can use nsCRT::IsAscii which takes PRUnichar*. We could also add char* version of IsAscii to nsCRT.
Status: NEW → ASSIGNED
r=taka
I don't understand the code that was there before; this makes the code much cleaner! Thanks, and r=hwaara You probably want sspitzer or bienvenu to sr= this.
sr=sspitzer my only suggestion would be make pchar a nsXPIDLString, and then do: rv = searchValue->GetStr(getter_Copies(pchar)); so you can remove the nsCRT::free()
checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla0.9.4
Changed QA contact to nhotta. Thanks.
QA Contact: ji → nhotta
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: