Граф коммитов

479 Коммитов

Автор SHA1 Сообщение Дата
dp%netscape.com aa723aadf5 Thread Safe nsHashtable (on demand only) 1999-03-30 08:15:39 +00:00
pierre%netscape.com 17dca257b7 Use delete[] for strings allocated with ToNewCString(). 1999-03-30 01:23:24 +00:00
briano%netscape.com 0af08a8120 Fixed the 'extra token after the endif' bug that was breaking some Unix builds. 1999-03-29 23:05:49 +00:00
waterson%netscape.com 66a55f3f2c Landed RDF_19990326_BRANCH, scriptability changes. 1999-03-29 19:52:54 +00:00
jband%netscape.com f332fa9be6 fixing cases of declaration not exactly matching definition and a few other instances of extraneous 'const' on PRUnichar passed by value 1999-03-27 07:34:44 +00:00
rickg%netscape.com ad1ba89a86 any fix for entities 1999-03-25 01:27:27 +00:00
waterson%netscape.com 72299217c8 Made the nsCStringKey class NS_COM so that it could be exported across DLLs. 1999-03-23 23:12:35 +00:00
rickg%netscape.com 74944668d1 removed linux warnings 1999-03-23 08:47:54 +00:00
rickg%netscape.com 2ba72879d7 added recycler to nsString2 1999-03-23 07:33:10 +00:00
rickg%netscape.com e15cc0dd6b fixed bug in nsString; added recycler to nsString2 1999-03-23 07:26:27 +00:00
waterson%netscape.com 814643482d Initial revision. Not currently in the build. 1999-03-23 01:46:44 +00:00
waterson%netscape.com 930b662aed Fixed some syntax errors that I found when I actually tried to compile. 1999-03-23 01:46:12 +00:00
waterson%netscape.com 6d60e2479a Added an Init() method to allow the creator to specify an alternate
character size for the internal representation.
1999-03-23 01:29:16 +00:00
waterson%netscape.com 31f60d2a20 Added nsIString interface. 1999-03-23 00:43:54 +00:00
rickg%netscape.com 5757dea09a removed unsightly warnings from string classes 1999-03-23 00:28:36 +00:00
rickg%netscape.com 8e40493438 fixed link error 1999-03-22 22:26:17 +00:00
rickg%netscape.com dacd8a783e fixed nsString2 build problem 1999-03-22 22:03:14 +00:00
dcone%netscape.com 5eb8628f41 fixed small mac bug 1999-03-22 21:52:57 +00:00
dcone%netscape.com 537e9b39e4 Fixed small mac bug 1999-03-22 21:52:39 +00:00
rickg%netscape.com 808678e7df landing nsString2 1999-03-22 09:54:46 +00:00
rickg%netscape.com ede624cbbf prep work to land nsString2 1999-03-22 08:29:26 +00:00
dp%netscape.com c1ed2b3f33 Patch for unsigned vs signed warnings. Thanks to <bruce@cybersight.com> 1999-03-21 19:26:32 +00:00
warren%netscape.com 1d59a013c3 Backed out nsUnicharKey -- couldn't get it to build with -pedantic linux. 1999-03-19 10:27:41 +00:00
warren%netscape.com 75ca8f8ad6 Attempt to fix pendantic breakage. 1999-03-19 09:46:09 +00:00
warren%netscape.com 5b82065f09 Added nsUnicharKey for nsHashtables. 1999-03-19 09:02:43 +00:00
rickg%netscape.com ac8a03b6c1 removed static vars 1999-03-19 08:47:20 +00:00
warren%netscape.com a4fb233916 Fix for broken linux compiler. 1999-03-19 06:18:08 +00:00
warren%netscape.com 6656b2284f Added nsHashtable::Exists. Renamed nsProgIDKey to nsCStringKey (what it is). 1999-03-19 05:51:49 +00:00
dp%netscape.com 84607889b9 using nsHashtable for dllStore. 1999-03-12 11:23:49 +00:00
warren%netscape.com f5b0e48292 tweak 1999-03-11 11:01:16 +00:00
warren%netscape.com 1ca883bda7 Exporting symbols for the mac. 1999-03-11 10:47:54 +00:00
warren%netscape.com 5f5aba4d61 Added union and intersection enumerators. 1999-03-11 09:56:59 +00:00
alecf%netscape.com 770326593d purify fixes from bruce@cybersight.com - free memory the right way 1999-03-10 00:32:44 +00:00
warren%netscape.com 3406dc1047 Implemented virtuals in cpp file to try to avoid linux pedantic error. 1999-03-09 14:09:11 +00:00
warren%netscape.com c50687b845 nsRepository -> nsIComponentManager changes. 1999-03-09 09:44:27 +00:00
rickg%netscape.com e1d3b703f9 fixed recently introduced i18n bugs 1999-03-07 19:23:28 +00:00
mcmullen%netscape.com 0b721e55f8 Removed the offset parameter from the base stream interfaces. Implemented string streams. 1999-03-05 22:53:56 +00:00
mcmullen%netscape.com 5a7ce034d2 Made a function static to remove a warning. 1999-03-05 21:35:23 +00:00
warren%netscape.com ab9643b9a2 Fixed First method to return error. 1999-03-05 05:48:21 +00:00
kipp%netscape.com 68409e0711 Use proper new operator 1999-03-05 04:33:57 +00:00
hyatt%netscape.com f96739c6a3 Fix to the RFind method of nsString. 1999-03-05 00:03:46 +00:00
scc%netscape.com 16e2511778 rename |IID()| --> |GetIID()| 1999-03-03 23:03:34 +00:00
scc%netscape.com 31ff626ae9 rename |IID()| --> |GetIID()| 1999-03-03 19:48:57 +00:00
ftang%netscape.com e79d1e4c91 add IsUpper and IsLower which work for all Unicode, reviewed and approved by kipp 1999-03-02 18:24:42 +00:00
mcmullen%netscape.com b38ede637e Call delete [] when new [] was used for allocation. 1999-02-27 20:39:07 +00:00
kipp%netscape.com fbade5b43f Defined some operator new/delete macros to help us get it right 1999-02-26 19:38:53 +00:00
alecf%netscape.com bd99bf6b76 add nsIEnumerator interface, and fix nsICollection interface to use long not int 1999-02-26 17:57:34 +00:00
rickg%netscape.com 191d1e1a16 new API on deque to set deallocator 1999-02-26 07:23:56 +00:00
rickg%netscape.com b82b092c4b small bug fixes and removal of global statics 1999-02-26 06:33:54 +00:00
warren%netscape.com 2b617870c9 Added export/import declaration (temporarily). 1999-02-24 09:55:44 +00:00
warren%netscape.com 3ebe3e76c4 Updated IIDs 1999-02-24 09:31:34 +00:00
warren%netscape.com 4e3aaf35f1 Added idl 1999-02-24 08:46:00 +00:00
warren%netscape.com 896241f805 Added NS_NewConjoiningEnumerator 1999-02-24 07:58:06 +00:00
peterl%netscape.com 2f976599d2 Fixed bustage in Clear caused by PRInt32 to PRUint32 conversion 1999-02-23 23:31:49 +00:00
warren%netscape.com 3642da81a5 Cleaned up nsICollection and nsIEnumerator. Broke out nsIBidirectionalEnumerator. Added ISupportsArray enumerator. Cleaned nsISupportsArray. 1999-02-23 08:10:24 +00:00
warren%netscape.com 242f5389ac Added nsSupportsArrayEnumerator 1999-02-23 08:04:28 +00:00
mjudge%netscape.com 3756cba288 changing nsIEnumerator to use NS_IMETHOD not virtual nsresult 1999-02-19 23:43:20 +00:00
rickg%netscape.com 5396424248 small mod to handle hex conversion better 1999-02-19 06:32:40 +00:00
warren%netscape.com b761e1c51f Added constructor for strings. 1999-02-18 00:12:08 +00:00
rickg%netscape.com e2e2dfc7e9 removed bug from deque, and added replaceChar call to string 1999-02-16 06:47:00 +00:00
troy%netscape.com 7ebee8ef4e Fixed some more memory leaks 1999-02-14 18:02:38 +00:00
troy%netscape.com 03a4fe9d44 Fixed some memory leaks 1999-02-14 05:44:39 +00:00
troy%netscape.com 7d913dc65b Added missing "const" that was allowing internal pointer to Unicode
string tobe returned as a non-const value
1999-02-14 05:44:01 +00:00
troy%netscape.com 3daac89caa Fixed some memory leaks 1999-02-14 05:34:07 +00:00
troy%netscape.com fd8dea9b65 Added NS_RELEASE of nsIUnicharInputStream interface in Load() 1999-02-14 05:20:34 +00:00
jfrancis%netscape.com 36ce5457b4 backing out attempted fix of enumerator interface 1999-02-12 08:17:55 +00:00
jfrancis%netscape.com ee23bdbc8e scattered NS_IMETHOD liberally through interface 1999-02-12 07:01:06 +00:00
sfraser%netscape.com 063c313612 That last checkin should have read: fix a bug in CompressWhitespace that caused the string length to be set incorrectly, when Trim shortened the string. 1999-02-11 06:23:29 +00:00
sfraser%netscape.com 53038aad55 Fix a bug in 1999-02-11 06:22:03 +00:00
erik%netscape.com f2ac3bc7ac Forgot to say "public" in "class nsPropertiesFactory : nsIFactory".
This caused it to fail on Linux, but not on Windows. Go figure. Sigh.
1999-02-10 22:51:01 +00:00
alecf%netscape.com 9a4cc65f9d add a few more string cases to fix compilers who complain about ambiguous overloading 1999-02-10 08:22:47 +00:00
bienvenu%netscape.com e2222e8806 back out linebreak defines 1999-02-09 05:06:35 +00:00
bienvenu%netscape.com 3b8a2a39bc add platform specific linebreak defines 1999-02-09 04:43:58 +00:00
warren%netscape.com 279c55d99d Added CR LF defines for general use. 1999-02-09 04:19:58 +00:00
waterson%netscape.com 0c8af86d02 Fix strncmp() routines to handle unsigned integers properly. r=linss, a=sar. 1999-02-08 22:01:08 +00:00
ftang%netscape.com f696de06e0 change upper and lower case operation to call unicharutil for the nonASCII case 1999-02-08 18:57:21 +00:00
warren%netscape.com 37a41235c9 Added assertion 1999-02-06 04:22:43 +00:00
warren%netscape.com d0574a9735 Added strtok implementation. 1999-02-06 04:18:15 +00:00
warren%netscape.com 7d4a63e139 Added nsVoidKey and nsISupportsKey. 1999-02-06 04:01:23 +00:00
warren%netscape.com d59ad30013 Fixed unsigned problems. 1999-02-06 03:56:36 +00:00
warren%netscape.com 8493a187aa Added strncmp, made lengths be unsigned. 1999-02-06 03:56:17 +00:00
erik%netscape.com 8d6a842091 Moved nsPropertiesFactory constructor from .h to .cpp file 1999-02-05 21:06:07 +00:00
dp%netscape.com 6c655137e4 Fixing mRefCnt not being initialized for nsPropertiesFactory 1999-02-05 06:05:51 +00:00
vidur%netscape.com ef9770e5a1 Added a Reset method to nsHashtable 1999-02-03 19:35:11 +00:00
erik%netscape.com 6aa4b1b246 Fixed compiler warning on Linux. 1999-02-03 18:11:45 +00:00
peterl%netscape.com 06e15c8d24 Added operator=(nsAutoString) for autostring 1999-01-30 06:19:52 +00:00
ftang%netscape.com 8a0b840e9f limit ToUCS2 only have effect in U+0080 to U+009F range so it won't mess up non Latin 1 characters 1999-01-29 18:08:36 +00:00
pinkerton%netscape.com 85c4f65a90 add IID for use with nsCOMPtr. 1999-01-28 17:59:37 +00:00
warren%netscape.com 449f4cb1fe Added nsIAllocator and implementation. Made service manager services sticky'. 1999-01-27 02:02:22 +00:00
erik%netscape.com 75f1796700 For some reason, the IID stuff didn't compile on the Mac. Fixed now. 1999-01-27 00:18:34 +00:00
erik%netscape.com ce12ded87b Added implementation of new nsIProperties class (like Java properties).
Also added nsBaseDLL.cpp for factory for this DLL (raptorbase).
1999-01-26 23:50:25 +00:00
erik%netscape.com 51fabd0847 public header file for new nsIProperties class (like Java properties) 1999-01-26 23:48:54 +00:00
peterl%netscape.com a35fe91e63 added nsStringArray 1999-01-23 06:58:34 +00:00
mjudge%netscape.com 6fb6cf3fe8 adding IID to interface 1999-01-22 18:58:43 +00:00
buster%netscape.com e05e86ea54 added IID static method so nsIEnumerator can be used with nsCOMPtr 1999-01-20 23:16:28 +00:00
rickg%netscape.com af405928a0 exposed objectAt in deque, and fixed toInteger bug 1999-01-15 19:20:51 +00:00
rickg%netscape.com 01a5bccadc fixed bug in Compare() and error in ToInteger() 1999-01-10 08:17:40 +00:00
rickg%netscape.com fcdfc75a82 modest improvements to string and deque 1999-01-09 01:09:39 +00:00
waterson%netscape.com 9784876549 Made the aCopy parameter to nsString::Insert const to clear up some compiler warnings. a=rickg. 1999-01-07 22:19:57 +00:00
brade%netscape.com d27e20fbbd reduce Macintosh compiler warnings by removing extra ; 1999-01-06 18:49:37 +00:00
troy%netscape.com 4c1ca751b4 Added comment to strdup() noting that t he caller must use delete[]
to free the memory
1998-12-22 19:01:14 +00:00
scc%netscape.com 2513a5445e Added static IID() method. This member function will be generated automatically in the future. 1998-12-18 03:43:29 +00:00
warren%netscape.com b22a4e72fd Networking changes: Reworked nsIURL, adding setters, factoring Open. Unsigned arguments for nsIStreamListener. 1998-12-16 05:40:20 +00:00
brade%netscape.com 842090ac8d fix compiler warning / bug: initialize index to 0 (reviewed peterl@netscape.com). 1998-12-15 22:19:04 +00:00
kin%netscape.com 436e1e6954 Fixed off by 1 error that occurs in PopBack() when
(mOrigin + mSize) >= mCapacity.
1998-12-09 17:07:20 +00:00
mjudge%netscape.com f3efd51091 new enumerator interface change 1998-12-03 21:46:51 +00:00
mjudge%netscape.com d2d3c7396a making big changes to enumerator class and adding nsICollection 1998-12-01 17:55:08 +00:00
mjudge%netscape.com 7a9d988f4e collection interface 1998-12-01 17:50:57 +00:00
rickg%netscape.com 5761b52e55 fixed bug #1203 1998-11-24 20:23:46 +00:00
rickg%netscape.com 7755d427f4 changed ToInteger() so that it returns an error properly 1998-11-24 02:38:21 +00:00
rickg%netscape.com 83c2278361 updated docs for nsString class usage 1998-11-20 22:11:09 +00:00
kipp%netscape.com e1fa4e95dd Made nsString::Insert actually support the count=-1 default argument 1998-11-19 17:58:30 +00:00
wtc%netscape.com 51656cbe28 Moved plvector.c and plvector.h from mozilla/nsprpub/lib/ds
to mozilla/xpcom.
Modified files: Makefile, Makefile.in, makefile.win.
1998-11-09 20:10:21 +00:00
wtc%netscape.com 1597ec5412 Moved plvector.c and plvector.h from mozilla/nsprpub/lib/ds
to mozilla/xpcom.
Modified files: MANIFEST, Makefile, Makefile.in, makefile.win.
1998-11-09 20:09:33 +00:00
pierre%netscape.com 57bc56148a fixed the 3 instances of Compare() to work with empty strings 1998-11-04 06:48:11 +00:00
pierre%netscape.com 809c3fa63c return 0 (ie. "strings are equal") instead of 1 when the 'n' of strncmp() and strncasecmp() is 0 1998-11-04 06:46:33 +00:00
peterl%netscape.com 391e5e2d12 made enumeration methods const
added append via array method
1998-11-03 20:14:08 +00:00
rickg%netscape.com 674c289b46 fixed bug in IsOrdered that was found on the web 1998-10-26 22:33:39 +00:00
scullin%netscape.com 6c1d460ea1 Migrating public header files to public 1998-10-19 17:48:55 +00:00
kipp%netscape.com 7b5a4e35e8 Fixed some sign extension bugs 1998-10-10 15:28:53 +00:00
kipp%netscape.com c728420a6b Added a reminder comment 1998-10-10 15:27:50 +00:00
waterson%netscape.com 08b74441d6 Fixed linkage problems with nsInt64 and nsTime classes. 1998-10-06 20:06:06 +00:00
rickg%netscape.com bbc76113d1 added radix support in ToInteger() 1998-10-04 04:52:10 +00:00
waterson%netscape.com 0e9767ff68 Added wrappers for 64-bit arithmetic and PRTime. 1998-09-16 19:53:12 +00:00
kipp%netscape.com 86f83878fd Added a macro and normalized auto-string initialization; reordered methods slightly just to annoy rickg :-) 1998-09-05 23:21:42 +00:00
valeski%netscape.com 09c4e871b5 String insertion was broken if you wanted to insert at the begining (index '0') of a string. 1998-09-04 18:49:50 +00:00
rickg%netscape.com 7cb4b0c39d new string improvements 1998-09-04 17:26:37 +00:00
peterl%netscape.com 95ae58e4db changed HashCode to HashValue and fixed return type 1998-09-02 01:59:30 +00:00
warren%netscape.com 28969e9e90 Added closure argument to nsHashtable::Enumerate. 1998-09-01 00:16:47 +00:00
rickg%netscape.com 7858c52f7e added BinarySearch method for faster string searches 1998-08-29 05:06:50 +00:00
valeski%netscape.com d3dd8ac5ee nsString.h - the mBuf member data type was the raw PRUnichar type, changed it to chartype.
nsString.cpp - we were dropping the ending null-byte/unichar when expanding/growing strings
1998-08-27 08:15:40 +00:00
kipp%netscape.com 83c90ed2d0 Fixed compiler problem with other compilers by removing useless const in front of void 1998-08-27 02:39:36 +00:00
rickg%netscape.com 073fc23c82 added iostream output to nsString 1998-08-22 17:50:13 +00:00
rickg%netscape.com c1d7662228 fixed off by one error in Pop() 1998-08-21 02:03:56 +00:00
rickg%netscape.com 702ee7c637 fixed objectAT() offset error 1998-08-12 08:53:03 +00:00
peterl%netscape.com 59e5ef7b52 performance tweak in trim 1998-08-07 02:11:13 +00:00
rickg%netscape.com 3d3143056b improved deque API a tad 1998-08-05 01:59:34 +00:00
rickg%netscape.com d7540e9307 kipps changes 1998-08-05 01:31:14 +00:00
rickg%netscape.com 7372a05ba9 minor tweak to remove tabs 1998-08-04 10:12:45 +00:00
rickg%netscape.com 8cadfbae7e added a few assertions, just to be safe 1998-08-03 21:03:49 +00:00
rickg%netscape.com bd6d9c1bf6 major upgrade to string class implementation 1998-08-03 20:46:38 +00:00
peterl%netscape.com e08babbc37 re-added backed-out changes 1998-08-01 00:56:28 +00:00
donm%netscape.com 56796d4050 backing out changes made while trying to land OJI. 1998-07-31 23:58:26 +00:00
peterl%netscape.com 21482eb238 replaced macros with inline functions 1998-07-31 23:27:36 +00:00
troy%netscape.com d885d03cbf Fixed some crashes where it wa assumes mStr was non-NULL 1998-07-30 20:36:51 +00:00
rickg%netscape.com 35ef5f0b7f more string improvements 1998-07-30 18:35:58 +00:00
rickg%netscape.com ef09dc96e8 fixed string assignment bug 1998-07-30 18:26:46 +00:00
troy%netscape.com 22a9e3103b Changed default constructor to leave capacity at 0 and not allocate
a buffer of 24 bytes
1998-07-29 23:06:21 +00:00
rickg%netscape.com 82a39cc883 warning removal 1998-07-25 02:11:02 +00:00
michaelp%netscape.com 3f1cee6416 modified streaming APIs to be what the OJI guys want. 1998-07-23 20:34:01 +00:00
troy%netscape.com 50b168bd01 Added some '=' operator member functions to nsAutoString 1998-07-22 21:38:48 +00:00
rickg c7c8f485ed major improvements to parser API's; fixed a few bugs 1998-07-02 08:14:22 +00:00
jevering 3705e61240 Modified ReplaceElementAt to grow the array if an index out of the
allocated boundary was requested.
1998-07-02 00:28:56 +00:00
rickg b2f62ff8a2 huge refactoring effort; transient style support; tables fixes, and more 1998-06-17 23:13:28 +00:00
jevering d86bf24428 Fixed double ended queue to accept a callback in the constructor
to a function which frees the inserted objects.
1998-06-12 01:36:24 +00:00
troy 5da3ea6720 Added an additional constructor 1998-06-11 22:48:25 +00:00
kipp 339f079993 Added SizeOf method 1998-06-05 21:38:36 +00:00
kipp ce9fdc61c7 new 1998-06-05 20:46:23 +00:00
raman ca98fa5189 Added the clone method. Approved by warren 1998-06-01 22:11:06 +00:00
kipp d0102a831e null terminate empty auto string properly 1998-06-01 20:55:46 +00:00
hardts 60cd050946 landing XPCOM_BRANCH 1998-05-22 21:56:30 +00:00
rickg 7dfde61fc9 minor perf improvement to deque 1998-05-21 20:37:17 +00:00
rickg 9e36b7c90a filled in the popback function 1998-05-21 02:27:34 +00:00
kipp b3f36862f4 Fixed bug in nsString::Cut code where the sizeof(chartype) was multipled a bit aggresively; I also tuned the routine somewhat as well 1998-05-20 23:18:25 +00:00
peterl 729e4048ee added enumerate methods 1998-05-20 20:31:58 +00:00
kipp 252b978edf Added empty constructor; removed instance count sillyness 1998-05-20 16:21:48 +00:00
rickg c857888a8d small improvement to deque-iterator interface 1998-05-19 01:51:24 +00:00
rickg c4b08c87d1 minor performance tweak for deque 1998-05-14 22:18:44 +00:00
rickg 23d466f216 added IsDigit to string 1998-05-11 23:27:35 +00:00
spider 31634b6c93 Fix UNIX build bustage 1998-04-30 16:40:38 +00:00
buster 9bf0f8ad1a at Peters request, I added NS_INT_PIXELS_TO_TWIPS and NS_FLOAT_PIXELS_TO_TWIPS 1998-04-30 15:11:33 +00:00
rickg fee218f0dc minor tweak to iterator 1998-04-30 05:55:51 +00:00
kipp 4857393413 Fixed compiler bugs/warnings 1998-04-26 03:13:20 +00:00
rickg cb78bb65c9 added Append(unichar) 1998-04-25 19:44:35 +00:00
karnaze 4364c856d4 added radio groups, select/option, beter sizing. widgets take creation parms. 1998-04-24 21:37:30 +00:00
rickg 60d933a6cb added a few new container types 1998-04-22 18:28:48 +00:00
peterl 17a3991909 fixed memory leaks in nsAutoString 1998-04-16 21:47:17 +00:00
kipp 4717009d75 moved to pub 1998-04-13 20:24:54 +00:00
ltabb 781c480871 Free the lizard 1998-03-28 02:44:41 +00:00