13 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
a452309e84 Fix stupid mistake in previous commit. Bug 316394, caught by smontagu
git-svn-id: svn://10.0.0.236/trunk@184818 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-17 15:13:25 +00:00
bzbarsky%mit.edu
48dbeb8ec0 Move some basic macros for working with UTF16 from intl to XPCOM; use them in
some places including the HTML parser.  Part of fix for bug 316394; the CSS
parser changes are still coming.  r=smontagu, r=mrbkap on parser changes, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@184651 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-15 18:17:22 +00:00
bzbarsky%mit.edu
9af8442fc0 Implement a in-place (no copy) CompareUTF8toUTF16, and use it to make the atom
hashtable lookups zero-copy.  Patch by jst, bug 314465 (with lots of the
discussion in bug 277479), r=bsmedberg,dbaron,brendan (on the PLDHashTable
keyhash value assumptions), sr=bzbarsky, moa=shaver.


git-svn-id: svn://10.0.0.236/trunk@184156 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-04 19:52:18 +00:00
dbaron%dbaron.org
03af0da567 Calculator should not underestimate converter. b=241440 Patch from <wind.li@sun.com>. r=dbaron sr=dveditz a=dveditz
git-svn-id: svn://10.0.0.236/trunk@169325 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-17 20:17:13 +00:00
smontagu%smontagu.org
c7bb338ece Add code comments from bug 242315 comment 17. r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@156111 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-07 22:21:26 +00:00
gerv%gerv.net
210853d71e Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155067 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:21:17 +00:00
darin%meer.net
55688e6410 landing string defragmentation patch for bug 231995, r/sr=dbaron,jst,dougt
git-svn-id: svn://10.0.0.236/trunk@152905 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 02:44:03 +00:00
darin%netscape.com
9c25ef7a21 fixes bug 163988 'Crashes at www.macgamer.com (HREF="&#)' patch=waltershen@netscape.com r=dbaron sr=jag
git-svn-id: svn://10.0.0.236/trunk@144399 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-02 21:20:14 +00:00
jshin%mailaps.org
bf657d4d62 bug 183156 : replace UCS2 in function/method names with UTF16 and update the
document accordingly. r=jag, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@144046 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 04:30:57 +00:00
dbaron%dbaron.org
5a70863d8e Move the core of NS_ConvertUCS2toUTF8 into character sinks in nsUTF8Utils.h, and use them to make ToNewUTF8String faster. Fix bug in surrogate handling in the moved code. Make various tweaks to improve performance of conversion between UCS2 and UTF-8 (both ways). b=206682 r=jag sr=jst
git-svn-id: svn://10.0.0.236/trunk@143570 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-11 04:27:13 +00:00
dbaron%dbaron.org
bce712ae10 Backing out my checkin for bug 206682 due to performance regression (slowing down NS_ConvertUCS2toUTF8).
git-svn-id: svn://10.0.0.236/trunk@142777 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-23 00:32:54 +00:00
dbaron%dbaron.org
ec7a16fd6d Move the core of NS_ConvertUCS2toUTF8 into character sinks in nsUTF8Utils.h, and use them to make ToNewUTF8String faster. Fix bug in surrogate handling in the moved code. Fix null-termination bug in UTF8ToNewUnicode. b=206682 r=jag sr=alecf a=brendan
git-svn-id: svn://10.0.0.236/trunk@142764 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-22 21:25:43 +00:00
dbaron%dbaron.org
1b8f7f8cfb Add StringBeginsWith, StringEndsWith, and UTF8ToNewUnicode. Move UTF8 handling utilities to separate file. b=131293 r=jst sr=alecf,jag a=asa b=131293
git-svn-id: svn://10.0.0.236/trunk@142727 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-21 22:20:27 +00:00