854 Commits

Author SHA1 Message Date
jst%netscape.com
4eaef03b6e Fixing bug 87677. Making AppendUTF[8|16]toUTF[16|8]() not copy the string twice when not needed. r=jaggernaut@netscape.com, sr=dbaron@dbaron.org
git-svn-id: svn://10.0.0.236/trunk@143797 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 16:30:17 +00:00
dbaron%dbaron.org
5a70863d8e Move the core of NS_ConvertUCS2toUTF8 into character sinks in nsUTF8Utils.h, and use them to make ToNewUTF8String faster. Fix bug in surrogate handling in the moved code. Make various tweaks to improve performance of conversion between UCS2 and UTF-8 (both ways). b=206682 r=jag sr=jst
git-svn-id: svn://10.0.0.236/trunk@143570 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-11 04:27:13 +00:00
seawood%netscape.com
06e1507b0c Removing old cfm build files. Use the CFM_LAST_RITES tag to resurrect. r=macdev
git-svn-id: svn://10.0.0.236/trunk@143527 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-10 21:18:27 +00:00
seawood%netscape.com
9e4caeaa92 Removing old cfm build files. Use the CFM_LAST_RITES tag to resurrect. r=macdev
git-svn-id: svn://10.0.0.236/trunk@143522 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-10 20:12:33 +00:00
jshin%mailaps.org
bd9829ca93 bug 183156 : the first step : replace UCS2 in function names with UTF16
(r=peterv, sr=alecf)


git-svn-id: svn://10.0.0.236/trunk@143328 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-05 11:44:06 +00:00
jst%netscape.com
9a2e1fee87 Fixing bug 87677. Implementing {Copy,Append}[UCS2|UTF8]to[UTF8|UCS2](). Lame implementations for now, but at least people can start using these methods to avoid double copying all over (this doesn't eliminate the double copy, but it isolates it). r=jaggernaut@netscape.com, sr=alecf@flett.org.
git-svn-id: svn://10.0.0.236/trunk@143132 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-31 06:03:18 +00:00
dbaron%dbaron.org
bce712ae10 Backing out my checkin for bug 206682 due to performance regression (slowing down NS_ConvertUCS2toUTF8).
git-svn-id: svn://10.0.0.236/trunk@142777 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-23 00:32:54 +00:00
dbaron%dbaron.org
ec7a16fd6d Move the core of NS_ConvertUCS2toUTF8 into character sinks in nsUTF8Utils.h, and use them to make ToNewUTF8String faster. Fix bug in surrogate handling in the moved code. Fix null-termination bug in UTF8ToNewUnicode. b=206682 r=jag sr=alecf a=brendan
git-svn-id: svn://10.0.0.236/trunk@142764 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-22 21:25:43 +00:00
dbaron%dbaron.org
1b8f7f8cfb Add StringBeginsWith, StringEndsWith, and UTF8ToNewUnicode. Move UTF8 handling utilities to separate file. b=131293 r=jst sr=alecf,jag a=asa b=131293
git-svn-id: svn://10.0.0.236/trunk@142727 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-21 22:20:27 +00:00
darin%netscape.com
ccf746783b fixes bug 199221 "provide inline implementations of common string methods" r=dbaron sr=jag
git-svn-id: svn://10.0.0.236/trunk@140568 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 06:24:47 +00:00
jshin%mailaps.org
18198834d1 bug 191542 : Add UTF-8 equivalent of |IsASCII|, IsUTF8. r=smontagu, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@140230 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 08:11:13 +00:00
seawood%netscape.com
5ce9a0b484 Fix signature of standalone embedstring version of |Distance|.
Bug #198276 r=jag sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@140219 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 06:46:49 +00:00
seawood%netscape.com
cbd88e7b46 Change |Distance| definitions to match forward declaration in nsReadableUtils.h. Fixing Forte bustage.
Thanks to David Baron <dbaron@dbaron.org> for the patch.
Bug #198276 r=jag sr=bz


git-svn-id: svn://10.0.0.236/trunk@139821 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-20 04:52:54 +00:00
dougt%netscape.com
c45f22dc59 defined correctly fixed
git-svn-id: svn://10.0.0.236/trunk@139738 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 02:16:07 +00:00
dougt%netscape.com
c242e700a1 pilot error
git-svn-id: svn://10.0.0.236/trunk@139737 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 02:11:34 +00:00
dougt%netscape.com
4f267db1dd relanding dwitte's string work "Excessive inlining in string libs" with a minor change to fix a build bustage. bug 196506. r=dbaron, sr=alec
git-svn-id: svn://10.0.0.236/trunk@139723 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 23:48:44 +00:00
heikki%netscape.com
ed7fdc29ae Backing out bug 196506 and build fix attempt.
git-svn-id: svn://10.0.0.236/trunk@139637 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 01:58:15 +00:00
heikki%netscape.com
1d9b23d398 Bustage fix from dwitte.
git-svn-id: svn://10.0.0.236/trunk@139635 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 01:17:18 +00:00
timeless%mozdev.org
e55c59e131 Bug 196506 Excessive inlining in string libs: Substring()
patch by mvl@exedo.nl r=dougt sr=alecf


git-svn-id: svn://10.0.0.236/trunk@139623 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 23:16:16 +00:00
alecf%netscape.com
7307191534 update API docs so that I don't get false positives for GetUnicode()
(not part of build, just a doc)


git-svn-id: svn://10.0.0.236/trunk@139295 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-11 23:26:18 +00:00
glazman%netscape.com
db21ac54ed backing out dwitte's changes from last bbaetz check in (at his request)
git-svn-id: svn://10.0.0.236/trunk@139194 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-10 10:28:40 +00:00
bbaetz%acm.org
7282cc41a0 Bug 196506 - Excessive inlining in string libs: Substring()
patch by dwitte@stanford.edu, r=timeless, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139190 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-10 08:10:20 +00:00
cls%seawood.org
609a196b54 XP code changes required for mingw landing.
Add NS_STDCALL macros for functions that require stdcall declarations.
Add NS_STDCALL_FUNCPROTO macro for stdcall function prototype typedefs.
Bug #134113 r=dougt sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139083 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-07 06:07:56 +00:00
dbaron%dbaron.org
e6a2b29ebf Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@138193 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 15:34:38 +00:00
jaggernaut%netscape.com
721f5f18ad Bug 191749: bad define inside nsAFlatString.h. r=/sr=bzbarsky, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@138056 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-21 00:34:17 +00:00
dougt%netscape.com
348eff25b2 Fixing bustage in nsXPIDLString. r=jag, sr=dbaron, b=189591, a=Donald Rumsfeld
git-svn-id: svn://10.0.0.236/trunk@136865 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-23 03:35:30 +00:00
dougt%netscape.com
ff549712f7 Fixing crash in NS_MsgStripRE() due to multiply-linked strings. b=189591, sr=dbaron, r=me
git-svn-id: svn://10.0.0.236/trunk@136768 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-22 00:21:48 +00:00
dougt%netscape.com
6b861e7c1e Moving nsEmbedString to mozilla/string. r=cls
git-svn-id: svn://10.0.0.236/trunk@136286 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-14 03:37:34 +00:00
dbaron%fas.harvard.edu
2c9b578539 Go back to PR_strtod since strtod does different things in different locales. b=183211 sr=bzbarsky r=caillon
git-svn-id: svn://10.0.0.236/trunk@134774 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-04 04:43:30 +00:00
bratell%lysator.liu.se
7491cb486a Bug 165877 - ToFloat never reported when the string wasn't a legal float. Also switch to strtod for a small performance win. r=jaggernaut@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@134608 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-02 09:30:59 +00:00
timeless%mozdev.org
cb71555d70 fixing comment about PRUnichar* ToNewUnicode
rs=brendan


git-svn-id: svn://10.0.0.236/trunk@133395 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-08 11:43:58 +00:00
jaggernaut%netscape.com
45feb50d64 Bug 178701: make source in FindInReadable be const. r=alecf, sr=scc
git-svn-id: svn://10.0.0.236/trunk@133192 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-06 21:11:24 +00:00
dougt%netscape.com
8ad50dc8b8 177173 - Exports required string headers to SDK, r=jag, sr=alecf, a=robert@ocallahan.org
git-svn-id: svn://10.0.0.236/trunk@132704 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-30 14:11:03 +00:00
shanjian%netscape.com
6ca97a5e22 #172700 NS_ConvertUTF8ToUCS2() surrogates buffer overflow
allocate enough space for surrogate.
p=jgmyers, r=shanjian, sr=dbaron, a=blizzard


git-svn-id: svn://10.0.0.236/trunk@132607 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-28 22:56:03 +00:00
dougt%netscape.com
3ce22699b8 landing 172512. nsEmbedString for component developers and embeders. r=alec, sr=jag/darin, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@132196 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 23:41:47 +00:00
seawood%netscape.com
f9eb727003 Define WIN32_LEAN_AND_MEAN globally for win32 builds.
Thanks to Stephen Walker <walk84@yahoo.com> for the patch.
Bug #172898 r=cls a=asa


git-svn-id: svn://10.0.0.236/trunk@132136 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 06:47:01 +00:00
shanjian%netscape.com
781107ce65 #134053 utf8 conversion problem in nsString.h
Change conversion to handle surrogates
r=yokoyama, sr=scc


git-svn-id: svn://10.0.0.236/trunk@131361 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 02:10:52 +00:00
jaggernaut%netscape.com
7444fd6673 Bug 162017: step 2: remove aIgnoreCase from FindChar1. r=peterv, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@129832 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-17 22:49:00 +00:00
jaggernaut%netscape.com
38f1451727 Bug 162017: first step to inlining nsStr. r=kaie, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@129791 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-17 13:56:34 +00:00
alecf%netscape.com
45c0b22a4c fix for bug 159328 - submit broken in some locales - use locale-insensitive tolower()
r=jag, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@127653 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-19 22:17:13 +00:00
bryner%netscape.com
79c62ac5b7 Get rid of gcc3's numerous warnings about using <new.h> instead of <new> by creating a new #define, NEW_H, which should be used instead of <new.h> or <new>. This is so we can continue to support a couple of braindead compilers that don't accept <new>. Bug 155852, r=cls.
git-svn-id: svn://10.0.0.236/trunk@127585 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-19 03:50:27 +00:00
alecf%netscape.com
2d02911818 argh, back myself out because it causes xpcomglue bustage
git-svn-id: svn://10.0.0.236/trunk@127474 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-16 15:24:58 +00:00
alecf%netscape.com
81006a3af9 fix bug 159328, and probably bug 146673 - use locale-insensitive string comparisons in strings so we don't break when doing case-insensitive matching of simple ASCII strings in non-US locales, like "SubMIT" != "submit"
r=brade, sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@127470 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-16 14:35:48 +00:00
henry.jia%sun.com
918761ba12 fix of Patch for Bug 75081: nsCString::FindChar is stupid. Extremely stupid
Patch by bratell@lysator.liu.se
Fix by Henry.Jia@sun.com
r=bryner


git-svn-id: svn://10.0.0.236/trunk@127239 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-14 05:37:48 +00:00
henry.jia%sun.com
cebc56dd96 fix of Patch for Bug 75081: nsCString::FindChar is stupid. Extremely stupid
Patch by bratell@lysator.liu.se
Fix by Henry.Jia@sun.com
r=jag, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@127238 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-14 05:06:09 +00:00
henry.jia%sun.com
c700eee56c Patch for Bug 75081: nsCString::FindChar is stupid. Extremely stupid
Patch by bratell@lysator.liu.se
r=jag, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@127237 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-14 04:13:38 +00:00
seawood%netscape.com
823af36499 Removing unused defines:
_IMPL_NS_BASE (bug #162142)
_IMPL_NS_GFXONXP (bug #162145)
_IMPL_NS_UI (bug #162183)
B_ONE_M (bug #162196)
XP_NEW_SELECTION (bug #162230)
r=cls
Thanks to Stephen Walker <walk84@yahoo.com> for the patches.


git-svn-id: svn://10.0.0.236/trunk@127074 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-12 13:35:18 +00:00
seawood%netscape.com
0b3ff474f3 Removing old nmake build makefiles. Bug #158528 r=pavlov
git-svn-id: svn://10.0.0.236/trunk@126975 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-10 07:55:43 +00:00
alecf%netscape.com
45d6ed4c56 bug 161716 - stop exporting nsStr from xpcom.dll
r=dougt, sr=jag


git-svn-id: svn://10.0.0.236/trunk@126782 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-08 18:59:54 +00:00
dougt%netscape.com
b17ce0e5ef Freezes nsAString, nsACString, nsAUTF8String. r=dougt, sr=alecf, a=brendan b=125389
git-svn-id: svn://10.0.0.236/trunk@126166 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-01 17:52:56 +00:00