Closed Bug 116134 Opened 23 years ago Closed 23 years ago

mimemoz2.cpp, pass a length of converted string to save strlen() call per line

Categories

(MailNews Core :: Internationalization, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.8

People

(Reporter: nhottanscp, Assigned: nhottanscp)

References

Details

Attachments

(1 file)

mime_convert_charset() calls ConvertUsingEncoderAndDecoder() to apply charset conversion for message body. mime_convert_charset() calls strlen() per line because converted length is not returned from ConvertUsingEncoderAndDecoder. Adding length as an output can save one strlen() call per line.
Blocks: 115288
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.8
Comment on attachment 64057 [details] [diff] [review] Change the conversion function to return a length to eliminate unnecessary strlen by the caller. R=ducarroz
Attachment #64057 - Flags: review+
Comment on attachment 64057 [details] [diff] [review] Change the conversion function to return a length to eliminate unnecessary strlen by the caller. sr=sspitzer
Attachment #64057 - Flags: superreview+
checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Naoki, could you help verifying this bug? Thanks much.
QA Contact: ji → nhotta
verified mimemoz2.cpp rev=1.161
Status: RESOLVED → VERIFIED
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: