dbaron%dbaron.org
|
feb73d7d3e
|
Speed up constructors of nsAutoString and nsCAutoString by calling nsStrPrivate::Initialize only once. b=188828 r=darin sr=alecf
git-svn-id: svn://10.0.0.236/trunk@152009 18797224-902f-48f8-a5cc-f745e15eee43
|
2004-01-29 04:00:47 +00:00 |
|
peter%propagandism.org
|
b8543e5f16
|
trying to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@147801 18797224-902f-48f8-a5cc-f745e15eee43
|
2003-10-09 17:02:05 +00:00 |
|
peter%propagandism.org
|
edf9f70a86
|
Move voidable string into xpcom. Part of fix for bug 221387 (XPathExpression.createExpression doesn't throw NAMESPACE_ERR). r=bz, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@147799 18797224-902f-48f8-a5cc-f745e15eee43
|
2003-10-09 16:15:29 +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
|
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 |
|
darin%netscape.com
|
ccf746783b
|
fixes bug 199221 "provide inline implementations of common string methods" r=dbaron sr=jag
git-svn-id: svn://10.0.0.236/trunk@140568 18797224-902f-48f8-a5cc-f745e15eee43
|
2003-04-02 06:24:47 +00:00 |
|
dbaron%dbaron.org
|
e6a2b29ebf
|
Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@138193 18797224-902f-48f8-a5cc-f745e15eee43
|
2003-02-22 15:34:38 +00:00 |
|
shanjian%netscape.com
|
781107ce65
|
#134053 utf8 conversion problem in nsString.h
Change conversion to handle surrogates
r=yokoyama, sr=scc
git-svn-id: svn://10.0.0.236/trunk@131361 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-10-08 02:10:52 +00:00 |
|
jaggernaut%netscape.com
|
38f1451727
|
Bug 162017: first step to inlining nsStr. r=kaie, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@129791 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-09-17 13:56:34 +00:00 |
|
henry.jia%sun.com
|
c700eee56c
|
Patch for Bug 75081: nsCString::FindChar is stupid. Extremely stupid
Patch by bratell@lysator.liu.se
r=jag, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@127237 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-08-14 04:13:38 +00:00 |
|
alecf%netscape.com
|
7e8aa74093
|
fix for bug 157572 - remove nsIAtom references from strings, and thus expicitly #include nsIAtom.h for consumers who are expecting it.
r=dmose, sr=jag, a=asa
git-svn-id: svn://10.0.0.236/trunk@125791 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-07-25 18:31:10 +00:00 |
|
mkaply%us.ibm.com
|
931db3bc2f
|
#154680
r=mkaply, sr=jag
Wrong default offset passed into RFind - should be -1
git-svn-id: svn://10.0.0.236/trunk@124301 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-06-28 20:31:09 +00:00 |
|
dougt%netscape.com
|
d6cc711878
|
Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756
git-svn-id: svn://10.0.0.236/trunk@121534 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-15 18:55:21 +00:00 |
|
jaggernaut%netscape.com
|
03072ae01d
|
Bug 132583: deal more cleanly with passing non-UTF8 strings to NS_ConvertUTF8toUCS2. r=scc, sr=darin
git-svn-id: svn://10.0.0.236/trunk@121461 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-14 08:27:57 +00:00 |
|
pinkerton%netscape.com
|
0b20e68bf4
|
make NS_ConvertUTF8toUCS2(ptr, length) work correctly. r=jag/sr=scc bug#141866
git-svn-id: svn://10.0.0.236/trunk@120879 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 21:50:45 +00:00 |
|
pinkerton%netscape.com
|
426a72cadc
|
backing out last patch, it doesn't work
git-svn-id: svn://10.0.0.236/trunk@120696 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-03 14:20:31 +00:00 |
|
pinkerton%netscape.com
|
abbe236093
|
Fix NS_ConvertUTF8ToUCF2 correctly work with substrings. patch by jag, r=pink
sr=scc, bug#141866
git-svn-id: svn://10.0.0.236/trunk@120694 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-03 13:57:12 +00:00 |
|
alecf%netscape.com
|
61312b4eeb
|
fix bug 139633 - as a part of freezing nsAString, move Left/Right/Mid back into nsString, and fix consumers to start using Substring()
r=jag, sr=darin
git-svn-id: svn://10.0.0.236/trunk@120220 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-29 20:29:54 +00:00 |
|
dbaron%fas.harvard.edu
|
772b5b8c58
|
Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
git-svn-id: svn://10.0.0.236/trunk@117354 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-03-24 00:16:18 +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 |
|
jdunn%netscape.com
|
2da0ba8cc7
|
fixing AIX bustage and sticking with the c++ standard for "friend" and
"function protyping" guidelines
Submitted by pkw@austin.ibm.com
# 43311
sr=jaggernaut@netscape.com
a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@116144 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-03-08 12:37:00 +00:00 |
|
alecf%netscape.com
|
8755908f04
|
bug 127091 - big string cleanup, removing old APIs
- removing Assign/AppendWithConversion for single-characters
- removing unused StripChars
- removing ReplaceChar[s] for non-matching chars
- removing CompressSet
- removing nsCString::Find/FindCharInSet/RFind for unichar strings
- removing lots of EqualsWithConversion
r=dp, sr=jag
a=asa
git-svn-id: svn://10.0.0.236/trunk@115750 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-03-04 23:18:21 +00:00 |
|
alecf%netscape.com
|
4331ed65d3
|
First part of fix for bug 107575 - remove nsString::FindChar because there is already an nsAString::FindChar, and remove the "ignore case" option in RFindChar
r=dougt, sr=jag
git-svn-id: svn://10.0.0.236/trunk@113200 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-01-30 06:04:29 +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 |
|
alecf%netscape.com
|
0885d07bf5
|
fix for bug 114450 - be explicit about string comparison w.r.t. character size - no more hand-rolled vtables!
sr=jag, r=dbaron
git-svn-id: svn://10.0.0.236/trunk@112713 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-01-24 19:14:18 +00:00 |
|
jaggernaut%netscape.com
|
9f55bebd67
|
Bug 113228: Remove To{Lower,Upper}Case from ns{C}String. r=bzbarsky, sr=jst
git-svn-id: svn://10.0.0.236/trunk@111413 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-01-05 11:18:57 +00:00 |
|
jaggernaut%netscape.com
|
fa464ed171
|
Bug 116957: Put Adopt on ns{C}String, and use it in nsStandardURL. r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@111092 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-12-26 23:14:12 +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
|
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 |
|
alecf%netscape.com
|
700d0e8fd2
|
move UTF8traits to the public realm for later consumption
r=dbaron r=jag (the string experts)
for bug 110531
git-svn-id: svn://10.0.0.236/trunk@109171 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-11-29 02:53:48 +00:00 |
|
jaggernaut%netscape.com
|
d22bec017c
|
Bug 98213: Make data members of nsStr protected and clean up code. r=dbaron, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@108048 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-11-14 12:35:52 +00:00 |
|
jaggernaut%netscape.com
|
7421efac1f
|
Bug 73292: Add const nsACString& constructor to NS_Convert(ASCII|UTF8)toUCS2. r=dbaron, sr=scc.
git-svn-id: svn://10.0.0.236/trunk@105601 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-10-17 05:17:53 +00:00 |
|
dbaron%fas.harvard.edu
|
f2bb49a853
|
Remove overloaded fputs functions, DebugDump, and (from nsCString only) ToCString). b=104763 r=jag rs=scc
git-svn-id: svn://10.0.0.236/trunk@105469 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-10-16 05:35:38 +00:00 |
|
dbaron%fas.harvard.edu
|
1382ac90eb
|
Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst
git-svn-id: svn://10.0.0.236/trunk@105468 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-10-16 05:31:36 +00:00 |
|
jaggernaut%netscape.com
|
34e006d3a5
|
Remove dead code from obsolete string classes: ToNewString(), IsUnicode() and GetBuffer(). r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@105387 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-10-14 05:06:53 +00:00 |
|
jaggernaut%netscape.com
|
51e0dc7a6c
|
Bug 100476: Convert uses of member functions ToNewUnicode, ToNewCString and ToNewUTF8String to their global versions and remove support from nsCString and nsString. r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@104212 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-09-29 08:28:41 +00:00 |
|
gerv%gerv.net
|
13afb6d0f9
|
Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-09-28 20:14:13 +00:00 |
|
jaggernaut%netscape.com
|
481ff2b35e
|
Bug 100764: remove NS_ConvertABCtoXYZ(CharT). r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@103710 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-09-25 09:37:13 +00:00 |
|
jaggernaut%netscape.com
|
1536b0881b
|
Remove #define nsString2 nsString and #define nsAutoString2 nsAutoString and fix last few uses of them. r=dbradley, rs=scc
git-svn-id: svn://10.0.0.236/trunk@102294 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-09-05 12:42:54 +00:00 |
|
jaggernaut%netscape.com
|
234588f481
|
Bug 98153: Remove SubsumeStr. r=dbaron, sr=scc
git-svn-id: svn://10.0.0.236/trunk@102292 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-09-05 10:46:45 +00:00 |
|
jaggernaut%netscape.com
|
2573850e73
|
Bug 88413: Remove GetUnicode() from nsString. Begone! r=dbaron, sr=scc
git-svn-id: svn://10.0.0.236/trunk@98551 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-07-03 09:09:56 +00:00 |
|
dbaron%fas.harvard.edu
|
a67c8b2b66
|
Add hack to make functions that used to work with nsXPIDLString continue to work now that nsXPIDLString inherits from nsAString by adding inline methods to resolve ambiguity for compilers that don't support |explicit|. r=jaggernaut sr=waterson b=88411, 88420
git-svn-id: svn://10.0.0.236/trunk@98325 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-06-29 23:12:48 +00:00 |
|
jst%netscape.com
|
535c86019d
|
scc checking in from jst's account. bug #75220: sr=jst, rs=brendan. renaming |nsPromiseC?Concatenation| to |nsDependentC?Concatenation|; |nsPromiseC?Substring| to |nsDependentC?Substring|; |nsLiteralC?String| and |nsLocalC?String| to |nsDependentC?String|, as these new names better reflect clients obligations to instances.
git-svn-id: svn://10.0.0.236/trunk@95533 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-05-19 11:27:30 +00:00 |
|
scc%mozilla.org
|
7b06841b03
|
landing string branch; see bug #73786
git-svn-id: svn://10.0.0.236/trunk@91049 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-04-02 19:40:52 +00:00 |
|
disttsc%bart.nl
|
f69c0e7cd8
|
bug 73339: Remove NS_ConvertToString (just another name for NS_ConvertASCIItoUCS2) from the tree. r=jst, sr=scc
git-svn-id: svn://10.0.0.236/trunk@90514 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-03-27 11:17:17 +00:00 |
|
disttsc%bart.nl
|
abd8de21e5
|
Change implicit conversion from
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|ns[C]LiteralString|
|ns[C]PromiseFlatString|
to explicit |get()|.
Add |get()| to |nsString|, remove implicit conversion operators where possible, add NS_WARNING where not (yet!).
Bug=53057, r=alecf, sr=scc
git-svn-id: svn://10.0.0.236/trunk@88947 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-03-08 08:05:05 +00:00 |
|
scc%mozilla.org
|
f3c858afc8
|
bug #69907: rs=brendan. Fix file-level comments in (to be) obsolete string files so they are clearer in LXR directory views.
git-svn-id: svn://10.0.0.236/trunk@87763 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-02-23 02:43:42 +00:00 |
|
scc%mozilla.org
|
3f930de8f0
|
bug #65219: (work done by dbaron) r=jag, sr=scc. Remove leaking string recyclers.
git-svn-id: svn://10.0.0.236/trunk@87754 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-02-23 02:03:02 +00:00 |
|
scc%mozilla.org
|
028f9f3180
|
bug #53071: r=danm, sr=alecf. Eliminate redundant implemenations, resolve resulting ambiguities.
git-svn-id: svn://10.0.0.236/trunk@86357 18797224-902f-48f8-a5cc-f745e15eee43
|
2001-02-06 23:07:24 +00:00 |
|