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
cls%seawood.org
d433694adb
Move mozilla/string into mozilla/xpcom/.
...
Bug #214700 r=dougt sr=leaf a=mkaply
git-svn-id: svn://10.0.0.236/trunk@146026 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-14 23:50:21 +00:00
dougt%meer.net
6dfc67684a
Fix for 205023. Adds nsTraceRefcnt stubs that access a global to allow tracing refcnt to work with the GRE/xpcom glue builds. r=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@145587 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-05 05:29:10 +00:00
dbaron%dbaron.org
179546334e
Make ns[C]String::AppendFloat locale-independent. b=209569 r=jag sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@144638 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-09 06:53:44 +00:00
dbaron%dbaron.org
643cf59560
Keep the pointer version of NS_ConvertUTF8toUTF16 null-safe. b=210279 r+sr=jag
...
git-svn-id: svn://10.0.0.236/trunk@144088 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 05:42:05 +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
seawood%netscape.com
06e1507b0c
Removing old cfm build files. Use the CFM_LAST_RITES tag to resurrect. r=macdev
...
git-svn-id: svn://10.0.0.236/trunk@143527 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-10 21:18:27 +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
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
dbaron%fas.harvard.edu
2c9b578539
Go back to PR_strtod since strtod does different things in different locales. b=183211 sr=bzbarsky r=caillon
...
git-svn-id: svn://10.0.0.236/trunk@134774 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-04 04:43:30 +00:00
bratell%lysator.liu.se
7491cb486a
Bug 165877 - ToFloat never reported when the string wasn't a legal float. Also switch to strtod for a small performance win. r=jaggernaut@netscape.com, sr=alecf@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@134608 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-02 09:30:59 +00:00
shanjian%netscape.com
6ca97a5e22
#172700 NS_ConvertUTF8ToUCS2() surrogates buffer overflow
...
allocate enough space for surrogate.
p=jgmyers, r=shanjian, sr=dbaron, a=blizzard
git-svn-id: svn://10.0.0.236/trunk@132607 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-28 22:56:03 +00:00
seawood%netscape.com
f9eb727003
Define WIN32_LEAN_AND_MEAN globally for win32 builds.
...
Thanks to Stephen Walker <walk84@yahoo.com> for the patch.
Bug #172898 r=cls a=asa
git-svn-id: svn://10.0.0.236/trunk@132136 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 06:47:01 +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
7444fd6673
Bug 162017: step 2: remove aIgnoreCase from FindChar1. r=peterv, sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@129832 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-17 22:49:00 +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
alecf%netscape.com
45c0b22a4c
fix for bug 159328 - submit broken in some locales - use locale-insensitive tolower()
...
r=jag, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@127653 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-19 22:17:13 +00:00
alecf%netscape.com
2d02911818
argh, back myself out because it causes xpcomglue bustage
...
git-svn-id: svn://10.0.0.236/trunk@127474 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-16 15:24:58 +00:00
alecf%netscape.com
81006a3af9
fix bug 159328, and probably bug 146673 - use locale-insensitive string comparisons in strings so we don't break when doing case-insensitive matching of simple ASCII strings in non-US locales, like "SubMIT" != "submit"
...
r=brade, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@127470 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-16 14:35:48 +00:00
henry.jia%sun.com
918761ba12
fix of Patch for Bug 75081: nsCString::FindChar is stupid. Extremely stupid
...
Patch by bratell@lysator.liu.se
Fix by Henry.Jia@sun.com
r=bryner
git-svn-id: svn://10.0.0.236/trunk@127239 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-14 05:37:48 +00:00
henry.jia%sun.com
cebc56dd96
fix of Patch for Bug 75081: nsCString::FindChar is stupid. Extremely stupid
...
Patch by bratell@lysator.liu.se
Fix by Henry.Jia@sun.com
r=jag, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@127238 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-14 05:06:09 +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
seawood%netscape.com
823af36499
Removing unused defines:
...
_IMPL_NS_BASE (bug #162142 )
_IMPL_NS_GFXONXP (bug #162145 )
_IMPL_NS_UI (bug #162183 )
B_ONE_M (bug #162196 )
XP_NEW_SELECTION (bug #162230 )
r=cls
Thanks to Stephen Walker <walk84@yahoo.com> for the patches.
git-svn-id: svn://10.0.0.236/trunk@127074 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-12 13:35:18 +00:00
seawood%netscape.com
0b3ff474f3
Removing old nmake build makefiles. Bug #158528 r=pavlov
...
git-svn-id: svn://10.0.0.236/trunk@126975 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-10 07:55:43 +00:00
alecf%netscape.com
45d6ed4c56
bug 161716 - stop exporting nsStr from xpcom.dll
...
r=dougt, sr=jag
git-svn-id: svn://10.0.0.236/trunk@126782 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-08 18:59:54 +00:00
bryner%netscape.com
44791394dd
Remove obsolete NS_BASE and _IMPL_NS_BASE, and unused/obsolete source files nsStdFileStream.* (bug 160052). r=cls, sr=alecf, a=asa.
...
git-svn-id: svn://10.0.0.236/trunk@126082 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-30 21:30:05 +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
dougt%netscape.com
69732c6053
XPCOM_GLUE nsTraceRefcnt problems. r=dp, sr=jag. bug 154319
...
git-svn-id: svn://10.0.0.236/trunk@124434 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-01 22:19:01 +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
bzbarsky%mit.edu
48b10a682c
Change ToInteger to not silently drop '+' and '#' in mid-string. Bug
...
54142, r=timeless, sr=jag
git-svn-id: svn://10.0.0.236/trunk@123754 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-21 02:22:48 +00:00
alecf%netscape.com
d3afab8273
fix for bug 149102 - fix a harmless UMR in the string code
...
sr=jag, r=dbaron
git-svn-id: svn://10.0.0.236/trunk@123235 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 20:31:14 +00:00
timeless%mac.com
9ab5ff7ba7
Bug 136756 http://bugzilla.mozilla.org/show_bug.cgi?id=136756#c29
...
from the book of this can't be good by leaf
bonsai answer's leaf's question thusly:
No files matched this file name. It may have been added recently.
it does indicate that a file by the correct spelling exists...
git-svn-id: svn://10.0.0.236/trunk@121594 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 03:26:40 +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
0c5e790fd8
last part of fix for bug 107575 - use ascii-based case-changing for PRunichar/char comparisons, rather than going through the unicharutil library
...
sr=jag, r=dbaron, a=asa
git-svn-id: svn://10.0.0.236/trunk@117099 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 23:22:03 +00:00
alecf%netscape.com
3fd16e4372
argh! remove unnecessary sizeof(), fixes orange
...
git-svn-id: svn://10.0.0.236/trunk@116851 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 10:48:31 +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