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
bsmedberg%covad.net
f5a3c325b8
Bug 299992 (re-landing) - Move pldhash etc. into the xpcom glue, and centralize various instances of nsINIParser in the xpcom glue. Some files were cvscopied from xpcom/ds to xpcom/glue r=brendan/darin
...
git-svn-id: svn://10.0.0.236/trunk@177766 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 18:29:55 +00:00
bsmedberg%covad.net
bb73805324
Backout bug 299992 - too much odd platform-specific bustage
...
git-svn-id: svn://10.0.0.236/trunk@177596 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-11 22:07:08 +00:00
bsmedberg%covad.net
b80f390773
Bug 299992, the part before the actual work: move pldhash and the templatized hashtables into the glue (and drop the minor dependencies on NSPR), and centralize our various in-tree nsINIParser classes into the glue (does not affect the ones used for the various installers) r=brendan/darin a=chase/cbeard
...
git-svn-id: svn://10.0.0.236/trunk@177591 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-11 20:40:53 +00:00
timeless%mozdev.org
2206b50003
Bug 284034 nsReadableUtils ToNew* methods crash on OOM
...
patch by ajschult@verizon.net r=darin sr=darin
git-svn-id: svn://10.0.0.236/trunk@170033 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-01 05:14:22 +00:00
bryner%brianryner.com
348b3c5fdb
Add --disable-v1-string-abi option to remove backwards-compatible support for the nsAString vtable. Bug 273424, r+sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@168238 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-24 16:44:41 +00:00
jst%mozilla.jstenback.com
96a9ce3c14
Fixing bug 243484. Adding 'count' out params to ToNewUTF8String() and UTF8ToNewUnicode() that tells the caller how many units (8 or 16 bit) that was returned. r=dbaron@dbaron.org, sr=darin@meer.net
...
git-svn-id: svn://10.0.0.236/trunk@156361 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-13 17:45:03 +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
jst%mozilla.jstenback.com
db2dd10b45
Fixing bug 183373. Provide XPCOM methods for accessing a shared empty string object. r=bryner@brianryner.com, sr=dbaron@dbaron.org
...
git-svn-id: svn://10.0.0.236/trunk@151658 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 21:36:40 +00:00
jst%mozilla.jstenback.com
96f9ed73f3
Fixing bug 230849. Making LossyCopyUTF16toASCII() and CopyASCIItoUTF8() truncate the destination even when the source is null. r=jshin@mailaps.org, sr=peterv@propagandism.org
...
git-svn-id: svn://10.0.0.236/trunk@151318 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-14 19:26:17 +00:00
peter%propagandism.org
2edb0bc996
Patch for bug 209699 (convert some consumers over to CopyUTF8toUTF16 / CopyUTF16toUTF8). r=jshin, sr=jst.
...
git-svn-id: svn://10.0.0.236/trunk@150665 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-23 09:24:11 +00:00
peter%propagandism.org
ae5e6617c4
Restoring fix for bug 224231, didn't affect btek's Tp.
...
git-svn-id: svn://10.0.0.236/trunk@148722 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-02 12:58:29 +00:00
peter%propagandism.org
318f3860a7
Back out a part of the fix for bug 224231 to see if it affects btek's Tp.
...
git-svn-id: svn://10.0.0.236/trunk@148721 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-02 11:59:54 +00:00
peter%propagandism.org
e303e4bc71
Fix for bug 224231 (Need AppendASCIItoUTF16). r=jst, sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@148683 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-01 09:35:48 +00:00
jshin%mailaps.org
5caccfff36
bug 183156 (a part of) : rename CopyUTF16toASCII as LossyCopyUTF16toASCII (r,sr=jag)
...
git-svn-id: svn://10.0.0.236/trunk@144210 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-27 07:44:13 +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
jaggernaut%netscape.com
57d5e83c5f
Bug 210160: Add nsStringComparator parameter to String(Begins)|(Ends)With. r=bzbarsky, sr=dbaron
...
Bug 210162: Fix up comments, argument names of atom getters in nsIAtom.idl. r=bzbarsky, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144015 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 02:59:51 +00:00
jst%netscape.com
5bea629223
Fixing part of bug 209699 (and more of bug 87677). Implement char* and PRUnichar* versions of Copy/AppendUTF*toUTF*(). r=alecf@flett.org, r=dbaron@dbaron.org, sr=jaggernaut@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@143925 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 05:17:55 +00:00
jst%netscape.com
4eaef03b6e
Fixing bug 87677. Making AppendUTF[8|16]toUTF[16|8]() not copy the string twice when not needed. r=jaggernaut@netscape.com, sr=dbaron@dbaron.org
...
git-svn-id: svn://10.0.0.236/trunk@143797 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 16:30:17 +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
jshin%mailaps.org
bd9829ca93
bug 183156 : the first step : replace UCS2 in function names with UTF16
...
(r=peterv, sr=alecf)
git-svn-id: svn://10.0.0.236/trunk@143328 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-05 11:44:06 +00:00
jst%netscape.com
9a2e1fee87
Fixing bug 87677. Implementing {Copy,Append}[UCS2|UTF8]to[UTF8|UCS2](). Lame implementations for now, but at least people can start using these methods to avoid double copying all over (this doesn't eliminate the double copy, but it isolates it). r=jaggernaut@netscape.com, sr=alecf@flett.org.
...
git-svn-id: svn://10.0.0.236/trunk@143132 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-31 06:03:18 +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
jshin%mailaps.org
18198834d1
bug 191542 : Add UTF-8 equivalent of |IsASCII|, IsUTF8. r=smontagu, sr=alecf
...
git-svn-id: svn://10.0.0.236/trunk@140230 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 08:11:13 +00:00
seawood%netscape.com
cbd88e7b46
Change |Distance| definitions to match forward declaration in nsReadableUtils.h. Fixing Forte bustage.
...
Thanks to David Baron <dbaron@dbaron.org> for the patch.
Bug #198276 r=jag sr=bz
git-svn-id: svn://10.0.0.236/trunk@139821 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-20 04:52:54 +00:00
kaie%netscape.com
565eab0df8
b=141317 CopyToLowerCase produces strings with random content
...
r=jag sr=alecf
git-svn-id: svn://10.0.0.236/trunk@120432 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-01 14:02:11 +00:00
alecf%netscape.com
f4ad21ae3a
a further nsString api reduction: remove the last case-insensitive PRUnichar*-to-PRUnichar* comparisons, moving to new API, and remove old methods from nsString. r=dougt, sr=jag a=scc
...
git-svn-id: svn://10.0.0.236/trunk@116842 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 06:46:56 +00:00
darin%netscape.com
04849998e1
fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
...
git-svn-id: svn://10.0.0.236/trunk@115936 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 07:48:55 +00:00
alecf%netscape.com
ce5f992cb4
bug 108962 - shrink nsStr by 4 bytes by packing mCharSize and mOwnsBuffer into bits of mCapacity
...
r=dbaron, sr=jst, with an almost-sr=jag
git-svn-id: svn://10.0.0.236/trunk@112769 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:46:56 +00:00
jst%netscape.com
2337395ba4
Fixing part of bug 118933. Speeding up the global resolve hook in the DOM JS helpers by eliminating the use of nsHashtable and nsStringKey in favor of pldhash. Adding global HashString(const nsA[C]String&) functions that calculate a hash code from a nsA[C]String, code by dbaron@fas.harward.edu. Also checking in brendan@mozilla.org's fix for a type error in the jsdhash/pldhash API found while working on this. sr=brendan@mozilla.org, r=peterv@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@112375 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 04:08:14 +00:00
jaggernaut%netscape.com
955f7defe5
Bug 115671: Add faster To{Upper,Lower}Case for nsASingleFragment{C}String, r=dbaron, sr=dveditz, and ns{C}String, r=bbaetz, sr=scc
...
git-svn-id: svn://10.0.0.236/trunk@111040 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-23 02:56:41 +00:00
jaggernaut%netscape.com
8bab064b76
Backing myself out to see if I'm the cause of btek going from 1245ms to 1251ms.
...
git-svn-id: svn://10.0.0.236/trunk@110867 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-20 06:12:49 +00:00
jaggernaut%netscape.com
695a180098
Bug 115671: Add (faster) To{Upper,Lower}Case for nsASingleFragmentStrings. r=dbaron, sr=dveditz
...
git-svn-id: svn://10.0.0.236/trunk@110841 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-20 02:15:35 +00:00
jaggernaut%netscape.com
357c78f88e
BUg 113228: Replace nsC?String::To(Lower|Upper)Case with global To(Lower|Upper)Case. r=dbaron, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@110075 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-08 07:08:38 +00:00
jst%netscape.com
7a8b18de9a
Checking in alecf's fix for bug 112209, string code performance regression. r=dbaron@netscape.com, sr=jst@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@109110 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 04:59:29 +00:00
alecf%netscape.com
6ebb917688
Back out my backout, now that mac seems to be fixed
...
git-svn-id: svn://10.0.0.236/trunk@106633 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 03:39:18 +00:00
alecf%netscape.com
d764923a0d
Back out my checkin because !(*@3 PSM is screwed.
...
git-svn-id: svn://10.0.0.236/trunk@106627 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 02:41:48 +00:00
alecf%netscape.com
345e7b6e33
bug 100214 - Remove string dependency on XPCOM routines that depend on unicharutil, r=jag sr=scc
...
git-svn-id: svn://10.0.0.236/trunk@106596 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 23:16:23 +00:00
jaggernaut%netscape.com
a4f043b425
Okay, we need |typename| for HP-UX. Adding.
...
git-svn-id: svn://10.0.0.236/trunk@104414 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-02 11:15:45 +00:00
jaggernaut%netscape.com
ea5b2d6296
Bug 102523: Non-ASCII characters are showing up as '?'s in certain cases because the ASCII to UCS2 code which we recently started using more was doing an incorrect conversion. r=bbaetz, r=dbaron, rs=scc
...
git-svn-id: svn://10.0.0.236/trunk@104413 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-02 10:18:31 +00:00
jaggernaut%netscape.com
5938d73d86
Bug 100750: string iterator users should use correct typedefs. r=dbaron, rs=scc
...
git-svn-id: svn://10.0.0.236/trunk@103709 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 09:35:50 +00:00
dbaron%fas.harvard.edu
c203792c3d
To improve performance, change string iterator postfix ++ to prefix ++ when used as a statement. b=78032 r=peterv, scc, harishd, dmose sr=hyatt a=asa
...
git-svn-id: svn://10.0.0.236/trunk@97460 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-19 22:38:45 +00:00
scc%mozilla.org
73c3c7385c
bug #75164 : sr={brendan, sfraser}. Adding the generators |nsSubstituteC?String|, which will replace |ReplaceSubstring|. Also fixing a declaration in "nsAStringGenerator.h".
...
git-svn-id: svn://10.0.0.236/trunk@95820 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 06:49:51 +00:00
scc%mozilla.org
9dd77648bd
fixing bustage: alright, Linux isn't falling for the old |typename| trick. Guess I have to pull this out into a separate parameterized type.
...
git-svn-id: svn://10.0.0.236/trunk@94809 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-13 07:03:29 +00:00
scc%mozilla.org
511cefd56a
fixing bustage: adding |typename| where needed
...
git-svn-id: svn://10.0.0.236/trunk@94806 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-13 05:50:11 +00:00
scc%mozilla.org
5f8f895b28
bug #75551 : r=jst, sr=sfraser. Added |CaseInsensitiveFindInReadable|
...
git-svn-id: svn://10.0.0.236/trunk@94803 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-13 05:16:10 +00:00