Shriram Kunchanapalli
56634dd6f6
Bug 743581: Removes nsCRT::strlen(const PRUnichar*). f=sgautherie r=dougt
2012-05-30 18:43:39 +01:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Ryan VanderMeulen
20672ef8aa
Backout 48213b973bfb (bug 695515) due to suspected OSX orange.
2012-04-24 20:51:53 -04:00
Anant Narayanan
6db17a7638
Bug 695515 - Remove last use of memmem. r=khuey
2012-04-24 08:21:12 -07:00
Justin Lebar
8dfd539864
Bug 729940 - Part 2: Stop using crappy hash functions in Gecko. r=bz
2012-03-12 18:53:18 -04:00
Justin Lebar
db32127dfd
Bug 729952 - Part 2: Use a better hash function in nsCRT, nsTHashtable, and pldhash. r=bz
2012-03-02 17:20:44 -05:00
Ehsan Akhgari
478ad1a412
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
Kyle Huey
ea94a69478
Bug 663479: Move all IDB structured clone operations to the main thread. r=bent
2011-06-24 07:21:21 -07:00
Jonas Sicking
6f2017e1c2
Bug 534136 Part 6: Properly handle invalid UTF8 string being passed to NS_NewAtom/do_GetAtom. r=jst
2010-03-08 07:45:00 -08:00
Jonas Sicking
6859a5ac8e
Bug 534136 Part 2: Use 16bit-char buffers inside atoms. r=bz sr=mrbkap
2010-03-08 07:45:00 -08:00
Boris Zbarsky
cc628250ef
Bug 439206. Make sure to not skip over the next char after the high surrogate when we have a missing low surrogate. r+sr=jst
2008-09-04 11:13:54 -04:00
2424da4ce9
Bug 415262 - "Make general use of new NSPR rotate macros" [p=swsnyder@insightbb.com (Steve Snyder) r=wtc sr=dbaron a=blocking1.9+]
2008-02-13 03:34:46 -08:00
8be89d4076
Fixing bug 377360. Fix atom table crash due to invalid UTF data in atoms. r=jonas@sicking.cc, sr=peterv@propagandism.org
2007-07-11 13:46:43 -07:00
98de634631
Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
2007-07-08 00:08:04 -07:00
timeless@mozdev.org
1b07f1e039
Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
...
r=darin
2006-12-21 07:03:23 +00:00
benjamin@smedbergs.us
fa111bf45b
Bug 334038 - Separate out the frozen C stringapi and the glued C++ wrappers, fix a few bugs along the way, and move some of the utils from nsCRT into nsCRTGlue for use by frozen-linkage code. r=darin
...
CVS history for xpcom/string/public/nsXPCOMStrings.h is at xpcom/string/public/nsStringAPI.h
CVS history for xpcom/build/nsXPCOMStrings.cpp is at xpcom/build/nsStringAPI.cpp
CVS history for xpcom/glue/nsStringAPI.h is at xpcom/string/public/nsStringAPI.h
2006-05-03 16:11:14 +00:00
bzbarsky@mit.edu
9c5967d721
Fix HashCodeAsUTF8 to work properly for non-BMP stuff, and update it to the
...
current UTF8 spec. Bug 316573, r=smontagu, sr=jst
2005-11-16 02:31:54 +00:00
bzbarsky@mit.edu
b47c9f2b3e
Implement a in-place (no copy) CompareUTF8toUTF16, and use it to make the atom
...
hashtable lookups zero-copy. Patch by jst, bug 314465 (with lots of the
discussion in bug 277479), r=bsmedberg,dbaron,brendan (on the PLDHashTable
keyhash value assumptions), sr=bzbarsky, moa=shaver.
2005-11-04 19:52:18 +00:00
timeless@mozdev.org
245a5a5077
Bug 254252 nsCRT::BufferHashCode has two variants, and only one user, HashCodeAsUTF8 has no users
...
patch by mikael@parknert.se r=darin sr=bz
2005-01-20 21:39:23 +00:00
gerv@gerv.net
c0cd46fc51
Bug 236613: change to MPL/LGPL/GPL tri-license.
2004-04-18 14:21:17 +00:00
bzbarsky@mit.edu
0f75d4e2bc
Fixing think-o.
2003-07-13 07:21:43 +00:00
bzbarsky@mit.edu
c30484bc0b
Optimize nsSegmentEncoder to not get an mEncoder unless it actually has
...
encoding to do (has a non-ascii spec segment). Bug 212475, r=darin, sr=dbaron
2003-07-12 23:06:13 +00:00
kyle.yuan@sun.com
e147db5498
Bug 161449 Non-ASCII shortcuts for select elements in html forms
...
r=aaronl, sr=alecf
fix nsCRT::ToLower/ToUpper bugs and use |ToLowerCase()| instead of |nsCRT::ToLower()| in nsListControlFrame
2002-09-29 01:42:07 +00:00
jkeiser@netscape.com
e7efa98e80
Make nsHTMLValue store embedded nulls (r=sicking@netscape.com, sr=bzbarsky@mit.edu, sr=jaggernaut@netscape.com
2002-09-26 07:41:53 +00:00
dbaron@fas.harvard.edu
ecfb7197f4
Speed up nsCRT::HashCode(const PRUnichar*) by renaming the version that does UCS-2 to UTF-8 conversion to nsCRT::HashCodeAsUTF8. r=jag sr=jst b=120363
2002-02-16 19:50:32 +00:00
dougt@netscape.com
afcc8aee6e
Null protecting hashing code. 96322. r=dp@netscape.com sr=alecf@netscape.com.
2002-01-14 20:10:48 +00:00
cathleen@netscape.com
73e0bc3ed7
converted 271 references to nsCRT::memcpy to memcpy, bug 118135 r=dp
2002-01-12 03:18:55 +00:00
alecf@netscape.com
b5313a1d5e
remove all unicharutil dependencies from xpcom (finally!)
...
bug 100214, r=jag, sr=scc
2001-11-01 22:40:03 +00:00
jband@netscape.com
e3aa4630d6
Add support for loading typelibs from multiple directories and correctly tracking that in xpti.dat. Also speedup xpti.dat reading by getting rid of PR_sscanf. This fixes bug 104191 and bug 105042. r=ccarlen sr=jst.
2001-10-18 04:23:25 +00:00
ftang@netscape.com
0490a931af
fix bug 101852. r=alecf, sr=darin/brendan. add PRUnichar* base IsAscii routines
2001-10-10 00:27:51 +00:00
gerv@gerv.net
58d409fba9
Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
2001-09-28 20:14:13 +00:00
timeless@mac.com
5347333034
Bugzilla Bug 24515 Cant build XPCOM standalone
...
Bugzilla Bug 88747 nsCRT::atoi should be removed or fixed
Whoops, i contributed to xpcom standalone not working
patch by jband, r=dbaron, sr=brendan
This makes nsCRT::atoi in standalone assert and functionally NOP
2001-08-21 19:36:07 +00:00
timeless@mac.com
e02d881573
Bugzilla Bug 88747 nsCRT::atoi should be removed or fixed
...
previous definition just recursed infinitely. |::atoi| takes a |char*|.
r=dbradley sr=scc
2001-07-13 05:17:33 +00:00
jst@netscape.com
2069ae52e4
Changing a mixture of old C-style casts and C++ constructor type casts to NS_STATIC_CAST to be consistent. This is a followup to my build bustage fix this morning, sr=scc@mozilla.org
2001-05-22 02:36:50 +00:00
jst@netscape.com
b0b4e61130
Fixing build bustage, apparently msvc doesn't like the C++ style PRUint8(...) casts here, changing them to old C style casts. r=peterv@netscape.com
2001-05-21 12:42:47 +00:00
scc@mozilla.org
41decca133
bug #28952 : r=jst, sr=scc, checking in patch by drepper@cygnus.com which fixes |nsCRT::strtok| to handle 8-bit delimiter characters correctly when the high bit is set.
2001-05-21 10:45:44 +00:00
scc@mozilla.org
ecbba51ff1
bug #64592 : r=waterson, sr=vidur. Fix |nsCRT::HashCode| and |nsCRT::BufferHashCode| to use a better hash (in this case, the same scheme as |PL_HashString|).
2001-03-11 02:15:36 +00:00
dprice@netscape.com
0637549842
busted linux, backing out.
2001-01-13 07:24:24 +00:00
dprice@netscape.com
7f9bad9aa5
BUG 63013 Removes the STAND_ALONE_STRING_TESTS flag, sr=scc
2001-01-13 07:03:35 +00:00
ducarroz@netscape.com
c3368a317f
Part of fix for bug 42458. The Unichar version of nsCRT::strndup wasn't correctly terminating the string. R=varada, SR=mscott
2001-01-08 19:58:12 +00:00
jst@netscape.com
3ba32f670e
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
2000-08-23 17:27:06 +00:00
warren@netscape.com
518d99c551
Added back in nsOpaqueKey, used in nsMemCache. Went back to 37 as the magic number (prime).
2000-08-21 02:37:20 +00:00
warren@netscape.com
5647605f72
After a little more analysis, I think using 33 instead of 37 as the magic multiplier gives just as good a distribution, but is a little faster to compute.
2000-08-20 22:28:12 +00:00
warren@netscape.com
faab19500d
Fix for hash code performance problem discovered by bienvenu. 'Sampling' hash code was statistically evil.
2000-08-20 21:29:10 +00:00
warren@netscape.com
8df9a9bce0
Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson
2000-08-10 06:19:37 +00:00
dp@netscape.com
be7317a47f
Standalone xpcom.
2000-05-13 23:35:55 +00:00
ftang@netscape.com
3030938ad6
add IsAscii function.
2000-05-03 07:04:25 +00:00
pavlov@netscape.com
cf7c007839
add some #if[n]def STASTANDALONE_STRING_TESTS r=scc
2000-03-25 02:07:34 +00:00
scc@netscape.com
25c9ebab14
Conditionally enable the new string APIs. Don't worry, they're not turned on yet. All changes r=waterson. Changes that effect |nsString| unconditionally, r=rickg.
2000-03-23 02:12:23 +00:00