61 Commits

Author SHA1 Message Date
alecf%netscape.com
5a78793da8 re-land fix for bug 107575, moving nsStr static routines into a private class/namespace
git-svn-id: svn://10.0.0.236/trunk@114538 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 23:23:55 +00:00
alecf%netscape.com
a959243ac9 oops, back myself out - forward declared enums don't work on linux!
git-svn-id: svn://10.0.0.236/trunk@114534 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 23:14:50 +00:00
alecf%netscape.com
6326ee9424 make all static nsStr:: members private, so they are not exported, and so the linker can cull them out
r=dbaron, sr=blake, jag
bug 125093


git-svn-id: svn://10.0.0.236/trunk@114533 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 23:08:38 +00:00
alecf%netscape.com
f7ee18f044 one more part of fix for bug 107575, including the much coveted whitespace
remove aIgnoreCase parameter from all nsString and nsCString consumers
sr=jag, r=shaver


git-svn-id: svn://10.0.0.236/trunk@113390 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 01:53:09 +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
fd6d75b30f fix for bug 112209 - remove last consumers of nsStr:: routines
r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@112785 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 00:26:44 +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
alecf%netscape.com
bfe2c85e5b factor out some table-based string manipulation routines to make it easier to seperate unicode vs. 8-bit character strings. bug 114450, r=dbaron sr=jag
git-svn-id: svn://10.0.0.236/trunk@112213 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:57:29 +00:00
alecf%netscape.com
d07f537d7f bug 114450 sr=jag
remove table-based comparison functions so we can actually remove them later


git-svn-id: svn://10.0.0.236/trunk@111630 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 02:28:28 +00:00
jaggernaut%netscape.com
3fddc3c879 Bug 113228: Remove nsStr::ChangeCase. r=dbaron, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@111619 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 01:44:43 +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
alecf%netscape.com
71dee0899c fix for bug 108597 - move mOwnsBuffer and mCharSize into smaller variables to reduce nsStr's overall size
r=jag, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@107478 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:50:13 +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
scc%mozilla.org
09a45773e9 bug #74726: sr=waterson, r=beard. Make |nsXPIDLC?String| inherit from |nsSharableC?String|, the new implementation is now in the string hierarchy (and out of string/obsolete).
git-svn-id: svn://10.0.0.236/trunk@98275 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 12:47:43 +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
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
vidur%netscape.com
3e62b3f9f3 Changes to parser to allow less copying. Use of the new nsSliding[Sub]String classes so that tokens can hold substrings that keep references into the scanner buffer. Cleaned up token interface and general string usage. r=harishd,heikki sr=jst
git-svn-id: svn://10.0.0.236/trunk@83553 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-12 21:58:14 +00:00
scc%mozilla.org
0c546d8367 fixed comments (so people are aware of the allocation policy)
git-svn-id: svn://10.0.0.236/trunk@80397 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 01:07:40 +00:00
scc%mozilla.org
9fc340d07f making all string construction explicit; plus (now that the DOM APIs are turned on and you can no longer build without NEW_STRING_APIS) chopping out |#ifdef|ed code
git-svn-id: svn://10.0.0.236/trunk@78027 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-02 20:53:31 +00:00
warren%netscape.com
e5706a7236 Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson
git-svn-id: svn://10.0.0.236/trunk@75975 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:19:37 +00:00
scc%mozilla.org
71bf634434 added some #ifdef logic to allow me to NEW_STRING_APIS off, so I can continue to profile for bloat
git-svn-id: svn://10.0.0.236/trunk@71980 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-11 01:03:19 +00:00
warren%netscape.com
cc5d426fbe Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433
git-svn-id: svn://10.0.0.236/trunk@71450 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-03 09:46:12 +00:00
scc%netscape.com
daa22be30a turning on the new strings API.
git-svn-id: svn://10.0.0.236/trunk@70010 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 07:18:04 +00:00
scc%netscape.com
4108d844a4 more work bringing |ns[C]String| into line with the new implementations. Again, this is no change when |NEW_STRING_APIS| is not defined.
git-svn-id: svn://10.0.0.236/trunk@64724 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 07:26:13 +00:00
scc%netscape.com
9121343202 adjustments to the string interfaces that should have no effect in the non-|NEW_STRING_APIS| case (yes, I built all changes to verify)
git-svn-id: svn://10.0.0.236/trunk@64635 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 22:51:51 +00:00
rickg%netscape.com
b0ba15c22d WIP for removal of deprecated string methods
git-svn-id: svn://10.0.0.236/trunk@62734 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-12 22:21:14 +00:00
rickg%netscape.com
dbd76fc70f fixed bug28837 (r=troy; a=jar). Removed warnings (r=troy)
git-svn-id: svn://10.0.0.236/trunk@61599 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-24 08:20:03 +00:00
rickg%netscape.com
4209916b0d fixed25049; r=harishd
git-svn-id: svn://10.0.0.236/trunk@60477 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 12:11:03 +00:00
rickg%netscape.com
e99aad53d3 fixed off-by-1 error in compare, and added ReplaceSubstring(). r=syd
git-svn-id: svn://10.0.0.236/trunk@55066 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 10:14:38 +00:00
warren%netscape.com
aeadc2d08d Changed ifdefs to this stuff is off for debug builds too.
git-svn-id: svn://10.0.0.236/trunk@54052 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 07:28:45 +00:00
warren%netscape.com
460bc80b0e Fixed include for non-debug builds.
git-svn-id: svn://10.0.0.236/trunk@54039 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 05:27:35 +00:00
warren%netscape.com
eff6e0fd5e Added nsStr (nsString, nsString2) code for counting strings that have been seen. r=rickg
git-svn-id: svn://10.0.0.236/trunk@54036 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 04:22:26 +00:00
rickg%netscape.com
6e4e20009b bug18337 and fixes for embedded nulls; r=harishd
git-svn-id: svn://10.0.0.236/trunk@53450 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-14 06:22:52 +00:00
dmose%mozilla.org
0efb7c174c updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00
rickg%netscape.com
b03845b337 updated FAQ section of nsString documentation
git-svn-id: svn://10.0.0.236/trunk@50927 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 18:45:18 +00:00
warren%netscape.com
da470df1ca Added nsTraceRefcnt logging.
git-svn-id: svn://10.0.0.236/trunk@50449 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 09:30:16 +00:00
rickg%netscape.com
4a9749eec3 bugs 13038 and 14920; also improved comments. r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@49803 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 04:47:19 +00:00
rickg%netscape.com
3ee654688b perf update and bug fix: a=chofmann r=buster
git-svn-id: svn://10.0.0.236/trunk@49399 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 04:03:49 +00:00
rickg%netscape.com
b32eca31ce improved safety of CBufDescriptor
git-svn-id: svn://10.0.0.236/trunk@48257 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 16:43:09 +00:00
rickg%netscape.com
944a022ec9 performance improvements and larger default buffer size
git-svn-id: svn://10.0.0.236/trunk@48092 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:46:55 +00:00
troy%netscape.com
2d23954843 Removed GetEmptySharedBuffer() and changed to using a const Unicode array of
size 1


git-svn-id: svn://10.0.0.236/trunk@46398 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-08 20:21:27 +00:00
rickg%netscape.com
e2575327bf another tiny tweak to docs
git-svn-id: svn://10.0.0.236/trunk@45677 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-02 07:13:56 +00:00
rickg%netscape.com
d191e8d9dd better docs and finally got rid of deprecated API's
git-svn-id: svn://10.0.0.236/trunk@45676 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-02 07:04:59 +00:00
rickg%netscape.com
fbbac7b078 improved docs, bug fixes, removed outdated APIs
git-svn-id: svn://10.0.0.236/trunk@45129 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-30 06:55:13 +00:00
rickg%netscape.com
59133b416a odd 'n' ends
git-svn-id: svn://10.0.0.236/trunk@41053 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-25 17:21:34 +00:00
scc%netscape.com
79458488be use shared allocator
git-svn-id: svn://10.0.0.236/trunk@40671 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 18:23:02 +00:00
rickg%netscape.com
06bf60610d landing updates to nsString
git-svn-id: svn://10.0.0.236/trunk@39848 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-17 07:26:16 +00:00
rickg%netscape.com
0dd1673f17 back out erroneously updated files
git-svn-id: svn://10.0.0.236/trunk@38890 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-09 06:01:55 +00:00
rickg%netscape.com
627e7710d1 added nsStringTokenizer.* files; but not in the makefiles yet
git-svn-id: svn://10.0.0.236/trunk@38888 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-09 05:11:25 +00:00