100 Commits

Author SHA1 Message Date
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
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
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
0be7c78830 attempting to fix build bustage on Solaris
git-svn-id: svn://10.0.0.236/trunk@87882 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-24 04:49:34 +00:00
scc%mozilla.org
ce4e310532 bug #'s 69940 and 69289: r=dbaron, sr=waterson. Fix parameters to, templatization of |Substring()|.
git-svn-id: svn://10.0.0.236/trunk@87870 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-24 02:55:46 +00:00
scc%mozilla.org
cdf2240955 bug #67577: r=jag, sr=(ben, hyatt). short circuit full compare with length test
git-svn-id: svn://10.0.0.236/trunk@87781 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-23 06:28:13 +00:00
dbaron%fas.harvard.edu
b7928862f7 Fix build bustage by removing extra right paren.
git-svn-id: svn://10.0.0.236/trunk@86446 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 03:04:46 +00:00
scc%mozilla.org
28c68103ce bug #57087: r=dmose, sr=waterson. Allow for multi-line literals.
git-svn-id: svn://10.0.0.236/trunk@86439 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 02:32:49 +00:00
scc%mozilla.org
fe019074bb bug #53067: r=danm, sr=alecf. Eliminate copying versions of |BeginReading|, |EndReading|, |BeginWriting|, |EndWriting|, and fix callers
git-svn-id: svn://10.0.0.236/trunk@86364 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 23:18:20 +00:00
dbaron%fas.harvard.edu
9cc24c9854 Remove extraneous line I introduced in previous checkin. r=waterson
git-svn-id: svn://10.0.0.236/trunk@82088 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-31 05:39:34 +00:00
dbaron%fas.harvard.edu
569c30eb6d Fix gcc 2.7.x bustage by defining |operator+()| for combinations involving |nsPromiseSubstring|, within |#ifdef NEED_CPP_DERIVED_TEMPLATE_OPERATORS|. (Based on scc's proposal earlier.) r=waterson
git-svn-id: svn://10.0.0.236/trunk@82087 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-31 04:33:32 +00:00
jst%netscape.com
66b122adb1 Fixing rtm++ bug 55587. nsAReadableString::FindChar() was returning the index from the offset to the character if found in stead of the index from the beginning of the string. r=kin, sr&a=scc
git-svn-id: svn://10.0.0.236/trunk@80637 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 01:53:56 +00:00
hyatt%netscape.com
c13defe82d Fix win32 build bustage, r=scc
git-svn-id: svn://10.0.0.236/trunk@80437 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 07:48:20 +00:00
scc%mozilla.org
2a523643d1 and trying to fix OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@80436 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 07:24:51 +00:00
scc%mozilla.org
e32cf73b72 and a access error ... r=waterson on this fix
git-svn-id: svn://10.0.0.236/trunk@80413 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 03:28:41 +00:00
scc%mozilla.org
987356386c damn typo
git-svn-id: svn://10.0.0.236/trunk@80406 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 01:51:52 +00:00
scc%mozilla.org
fbd0ea0893 bug #54712, r=rjc, a=waterson. Added a |Distance| function to calculate the span between two iterators, then added a constructor and appropriate global function to allow |Substring|s to be made from iterators in addition to the old scheme of {index,length}
git-svn-id: svn://10.0.0.236/trunk@80396 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 01:07:02 +00:00
scc%mozilla.org
8ed2788f81 fix typo
git-svn-id: svn://10.0.0.236/trunk@78958 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 02:56:13 +00:00
scc%mozilla.org
31d7ddd4e2 fixed indentation, added inheritance that makes classes cooperate in our buffer sharing strategy, added |get()| to flat classes, as we're deprecating implicit operators for this task
git-svn-id: svn://10.0.0.236/trunk@78954 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 02:41:06 +00:00
scc%mozilla.org
9a06126e26 moved |Mid|, |Left|, and |Right| to "nsAWritableString.h" since on SunOS, they couldn't compile until after they'd seen the definition of |basic_nsAWritableString|. They're still members or readable ... got to get rid of these functions
git-svn-id: svn://10.0.0.236/trunk@78622 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 11:57:43 +00:00
scc%mozilla.org
27d3422b96 fix a |const| error
git-svn-id: svn://10.0.0.236/trunk@78586 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 05:02:19 +00:00
scc%mozilla.org
047ee3b53a bug #51662, r=bienvenu
git-svn-id: svn://10.0.0.236/trunk@78526 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 22:07:14 +00:00
scc%mozilla.org
b4462af987 A good place to hang the gcc fix, thanks dbaron!, and backing out previous failed fix ideas (|Concat|), r=dbaron
git-svn-id: svn://10.0.0.236/trunk@78099 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-04 05:00:25 +00:00
scc%mozilla.org
ff4ff3adf3 now that constructors are explicit, we'll have to get rid of extra comparison operators ... in fact, this is to fix immediate bustage
git-svn-id: svn://10.0.0.236/trunk@78056 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-03 03:16:47 +00:00
scc%mozilla.org
5dd484e3e6 adding |Concat| function to fix pravda and speedracer bustage
git-svn-id: svn://10.0.0.236/trunk@78049 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-03 01:38:27 +00:00
mcafee%netscape.com
d290cd5114 Solaris bustage fix from scc/bruce/#mozilla
git-svn-id: svn://10.0.0.236/trunk@78010 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-02 07:14:59 +00:00
scc%mozilla.org
fe86dd230b bug #49817: fix |normalize_forward|, |normalize_backward|; make |Begin(Read|Writ)ing| call |normalize_forward|; pass iterators by reference. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@77990 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-02 04:10:44 +00:00
scc%mozilla.org
33aceb3053 don't know how I omitted this last night, particularly since mscott tested. must shift the bit in the mask to get a new position. This should fix the string hang
git-svn-id: svn://10.0.0.236/trunk@77777 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-31 17:56:28 +00:00
scc%mozilla.org
9d68ddd2ce make |Last| not try to adjust an iterator into an empty string (stops illegal calls to |Last| on an empty string from going into an infinite looop), r=mscott
git-svn-id: svn://10.0.0.236/trunk@77752 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-31 06:12:35 +00:00
beard%netscape.com
e4ac42fcaf fixing build bustage. r=scc
git-svn-id: svn://10.0.0.236/trunk@77749 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-31 06:00:21 +00:00
mscott%netscape.com
89d9307d94 back out my change until we can get it to build on the mac. This re-introduces the infinite loops when you run the browser though
so be warned.


git-svn-id: svn://10.0.0.236/trunk@77746 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-31 05:43:21 +00:00
mscott%netscape.com
b2e243a5c2 Bug #50853 --> fix a nasty infinite loop on windows. The compiler was choosing the wrong overloader method for nsPromiseConcatenation::operator+
which caused it to fail to inherit a mask bit which in turn led to the infinite loop.

this code came from scc.
r=mscott


git-svn-id: svn://10.0.0.236/trunk@77739 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-31 04:29:42 +00:00
akkana%netscape.com
61f8c1a9e0 From scc, to help with bug 44372: add NS_NAMED_LITERAL_STRING macros. r=me
git-svn-id: svn://10.0.0.236/trunk@77521 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-30 00:24:57 +00:00
jst%netscape.com
0355b8a4c9 Fixing AIX and SunOS 5.7 bustage. r=scc&vidur
git-svn-id: svn://10.0.0.236/trunk@77119 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-24 22:17:25 +00:00
jdunn%netscape.com
6eeb15a270 fixing hpux bustage
r=vidur@netscape.com


git-svn-id: svn://10.0.0.236/trunk@76987 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 23:57:00 +00:00
jst%netscape.com
7e0575bfee DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc
git-svn-id: svn://10.0.0.236/trunk@76967 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 17:27:06 +00:00
scc%mozilla.org
12978905ce bug #48464. explicitly picking my own or the auto-generated function, in particular |operator=|. r={vidur, waterson}, a=vidur
git-svn-id: svn://10.0.0.236/trunk@76062 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 00:42:41 +00:00
scc%mozilla.org
e98f6c2c7c fixes needed to get multi-fragment strings working; r|a=waterson
git-svn-id: svn://10.0.0.236/trunk@75978 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:36:54 +00:00
scc%mozilla.org
14a9f6633b fixed |BeginReading| and |EndReading| to no longer take an offset, fallout from the new multi-fragment string implementation; fixed a bug in |operator-=| exposed by the change to |EndReading|; fixed the |CharAt| family of routines accordingly; fixed comments galore; r|a=waterson
git-svn-id: svn://10.0.0.236/trunk@75877 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 08:26:00 +00:00
scc%mozilla.org
a6b40ede8b fix for commercial bustage on Mac (adding |operator const CharT*() const| to |basic_nsLiteralString|). fix for blizzards linux changes needing working |Substring|. r=beard,syd
git-svn-id: svn://10.0.0.236/trunk@72736 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 05:13:10 +00:00
scc%mozilla.org
2a2a840b4d fixing OS/2 VisualAge platform bustage, and bad dates in licenses
git-svn-id: svn://10.0.0.236/trunk@72507 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-18 05:00:31 +00:00
scc%mozilla.org
bcb44dd5d8 provide real definitions for |NS_LITERAL_STRING| (one of which exploits |wchar_t|); add a range-check assertion to |CharAt|; add another constructor to |nsPromiseConcatenation| to allow per-class |operator+()| (which some compilers need to resolve ambiguity) to work; fiddled with inlining to reduce bloat ... more experiments needed
git-svn-id: svn://10.0.0.236/trunk@71978 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-11 01:00:08 +00:00
scc%mozilla.org
b27d72b4ff Exploiting a user-defined |operator->()| when the result is a pointer to a primitive type is problematic for the OS/2 VisualAge compiler. Eliminate such uses in the new string facilities. r=waterson
git-svn-id: svn://10.0.0.236/trunk@71249 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 06:01:18 +00:00
waterson%netscape.com
25af6f072e Bug 39424. Fix Sun Workshop compiler bustage by conditioning NS_READABLE_CAST's funkiness on NEED_CPP_TEMPLATE_CAST_TO_BASE. r=scc
git-svn-id: svn://10.0.0.236/trunk@70998 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-27 05:51:56 +00:00
waterson%netscape.com
5a5cff3522 Back out changes that I didn't mean to check in.
git-svn-id: svn://10.0.0.236/trunk@70972 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-27 00:17:36 +00:00
waterson%netscape.com
798592bacb Fix boneheaded mistake: I left the return type of NS_ConvertUCS2toUTF8::Init().
git-svn-id: svn://10.0.0.236/trunk@70971 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-27 00:17:10 +00:00
scc%mozilla.org
9e46fa744e Bug #39963. The NS_LITERAL_[C]STRING macros incorrectly counted the null terminator for a literal string in the length. This may not be the complete solution. r=sdagley
git-svn-id: svn://10.0.0.236/trunk@70565 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-21 01:45:19 +00:00
scc%mozilla.org
64c1d73da8 Bug #39686. Made an |NS_COUNT|. Put it in the new file "nsAlgorithm.h", to which I also moved |NS_MIN| and |NS_MAX| from "nscore.h", and |copy_string| and |copy_string_backward| from "nsAReadableString.h". Also fixed non-standard include-guards. r={sford, jag}
git-svn-id: svn://10.0.0.236/trunk@70562 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-20 20:43:26 +00:00
scc%netscape.com
21439a6da2 fixed a problem with cut and advancing past the end of a string with an iterator r=waterson
git-svn-id: svn://10.0.0.236/trunk@70026 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 10:13:23 +00:00