Commit Graph

291 Commits

Author SHA1 Message Date
pavlov%netscape.com
64baf8c0ac add typename to make linux compiler happy r=scc 2000-04-23 05:54:36 +00:00
scc%netscape.com
15fe64c984 Fixed |nsPromiseSubstring::GetReadableFragment|, which had been walking off the end. Re-implemented |copy_string| in terms of the new char-source/char-sink stuff that beard and I came up with. Factored some code into |SameFragment|. Did some general shuffling and cleanup. 2000-04-21 01:25:19 +00:00
scc%netscape.com
44d068215d Added |nsCharSourceTraits| and |nsCharSinkTraits| to better facilitate copying from arbitrary char sources into arbitrary char consumers 2000-04-21 01:20:55 +00:00
scc%netscape.com
342581ae7f added |nsWritingIterator<T>::write| to satisfy the char-source/char-sink stuff beard and I put in. 2000-04-21 01:19:40 +00:00
scc%netscape.com
63a7e424bf Added signatures to prevent automatic incorrect promotion of |char| to |PRUnichar| 2000-04-14 23:20:31 +00:00
scc%netscape.com
f0e3d7164f Added a new type, |incompatible_char_type| to help build signatures that prevent automatic incorrect promotion from |char| to |PRUnichar|. Kind of a hack, but the right way (specializing |nsAWritable| for |PRUnichar| can't be made to compile everywhere) 2000-04-14 23:19:14 +00:00
waterson%netscape.com
09d2262556 Ok, the |typename| stuff wasn't really necessary, and caused problems on VC++. r=scc 2000-04-04 09:21:57 +00:00
waterson%netscape.com
2831f7bd1b Add |operator!=()| implementation, conditioned on HAVE_CPP_UNAMBIGUOUS_STD_NOTEQUAL. r=scc 2000-04-04 06:42:59 +00:00
waterson%netscape.com
5ef034810c Hackery to get NEW_STRING_APIS compiling on gcc-2.7.2.3. r=scc 2000-04-04 06:00:01 +00:00
waterson%netscape.com
fbfadbfae0 Start trying to compile on Unix with new changes. r=scc 2000-04-04 05:45:57 +00:00
scc%netscape.com
8e418b816c make appending a single character faster for rickg 2000-04-04 03:06:15 +00:00
scc%netscape.com
74a3c00cac incremental changes. these files are not yet part of the build 2000-03-31 07:28:38 +00:00
scc%netscape.com
85ed3b0e46 incremental changes. We're getting closer. These files are not yet part of the build. 2000-03-30 22:53:41 +00:00
scc%netscape.com
3ff4debe4a First Checked In. 2000-03-29 08:11:59 +00:00
scc%netscape.com
6c955bebcd rename |string_copy| and |string_copy_backward| to |copy_string| and |copy_string_backward| 2000-03-29 00:54:12 +00:00
scc%netscape.com
53eaa359c9 Adding some macros that allow me to start using literal strings 2000-03-28 22:37:51 +00:00
waterson%netscape.com
9de0d361a8 Beef up autoconf tests to differentiate 'ambiguity resolving' and 'access changing' support of the 'using' keyword. Add a test to see if the 'std' namespace is used on the platform. r=scc 2000-03-28 07:01:37 +00:00
scc%netscape.com
0ac1f0ce94 traded in |copy_chunky_backward| for |string_copy_backward| and moved it to "nsAReadableString.h" along with the |string_copy|s. Added tests for |SetLength|, which would have caught the problem in |nsString| I fixed earlier, and one for |Insert| that exposed the trouble in |copy_chunky_backward|. 2000-03-27 09:06:37 +00:00
scc%netscape.com
8989445116 Trying to fix for Solaris 2000-03-25 07:55:07 +00:00
pavlov%netscape.com
57009b25cf add some #if[n]def STASTANDALONE_STRING_TESTS r=scc 2000-03-25 02:07:34 +00:00
scc%netscape.com
4735f81cae Making the tests run on all platforms. Removing some confusion about iostreams. 2000-03-25 00:59:29 +00:00
scc%netscape.com
b0b8c5e18f Incremental changes. These files are not yet part of the build. 2000-03-25 00:47:02 +00:00
scc%netscape.com
402f35dfcd Lots of changes to get this stuff building on Solaris, et al. None of these changes effect the mainline build yet, and won't until |NEW_STRING_APIS| is defined for everyone (coming soon) 2000-03-24 22:06:57 +00:00
waterson%netscape.com
79a9a8b12c Fully qualify ReadingIterator when used inside template (so it compiles on egcs-1.1.2). r=scc 2000-03-24 06:02:59 +00:00
waterson%netscape.com
12219bcb0b Fully qualify ReadingIterator when used inside template (so it compiles on egcs-1.1.2). Minor silly fixes. 2000-03-24 06:02:37 +00:00
waterson%netscape.com
dcfe6275d6 Use NS_MIN and NS_MAX instead of std::min and std::max. r=scc 2000-03-24 00:39:44 +00:00
scc%netscape.com
045cc4e9ba resolving ambiguities; getting the new string APIs to build everywhere 2000-03-23 22:42:34 +00:00
scc%netscape.com
7d2d0cf608 Added "nsCharTraits.h"; no longer relying on |std::char_traits|. Renamed some things so overloading wouldn't fight with overriding. 2000-03-23 21:15:01 +00:00
scc%netscape.com
931f86c6b0 First Checked In. 2000-03-23 21:09:27 +00:00
scc%netscape.com
2f1956e29f Getting rid of warnings. These files are not yet part of the build. 2000-03-22 22:51:18 +00:00
scc%netscape.com
9d360e3ad0 Made critical operations exploit chunky iterators. These files are not yet part of the build. 2000-03-22 08:19:48 +00:00
scc%netscape.com
0825f5bcd1 Incremental changes. Fixed some things that were stopping rickg from compiling. This file is not part of the build. 2000-03-14 17:10:03 +00:00
scc%netscape.com
92e24087ff Incremental changes. Provided implementations for the virtual functions that were previously pure virtual. These implementations were common, after all, even just between |nsString| and |nsCString|. These files are not part of the build. 2000-03-12 20:57:35 +00:00
scc%netscape.com
7002773472 Incremental changes. Added |Implementation()| member to allow rick to implement copy-on-write. Added more virtual members to writable. More to come. These files are not part of the build. 2000-03-12 17:39:49 +00:00
scc%netscape.com
a16db647b9 Incremental changes. Reorganized code; implemented more factored methods. Moved string owner from fragment to iterator. Renamed the |const| version of |GetFragment| to |GetConstFragment| so we didn't mix overloading with overriding; eliminating need for some uses of |using| ... may want to do the same thing with |Begin| and |End|. These files are not part of the build. 2000-03-12 01:28:16 +00:00
scc%netscape.com
7b543c486c Incremental changes. Modified the strategy for nested |nsPromiseConcatenation| objects. Changed the type of the fragment identifier in a fragment. These files are not part of the build. 2000-03-10 07:04:09 +00:00
scc%netscape.com
4d17a62278 Incremental changes, renamed |nsConcatString| to |nsPromiseConcatenation|. Added |nsPromiseSubstring|. Got rid of upper/lower signatures. Added |Assign|. Fixed comparison macros. Added |operator+=| and |operator=|. These files are not part of the build. 2000-03-10 02:30:14 +00:00
scc%netscape.com
4343cd857e Incremental changes. Getting the comparison operators right. Making |operator+()| do the right thing. These files are not part of the build yet. 2000-03-09 06:37:45 +00:00
scc%netscape.com
226fee4a5e Incremental changes. These files are not yet part of the build. a=don 2000-03-08 21:57:14 +00:00
scc%netscape.com
50fa47e2c4 Not part of the build. Developing interfaces. Incremental changes to share with rickg, et al. 2000-03-07 20:56:07 +00:00
scc%netscape.com
379d85539c First Checked In. 2000-03-07 01:02:10 +00:00