dwitte%stanford.edu
7357ff08a9
removing unnecessary branch.
...
b=225887, r=jag, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@149492 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-18 12:31:25 +00:00
peter%propagandism.org
e303e4bc71
Fix for bug 224231 (Need AppendASCIItoUTF16). r=jst, sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@148683 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-01 09:35:48 +00:00
cls%seawood.org
d433694adb
Move mozilla/string into mozilla/xpcom/.
...
Bug #214700 r=dougt sr=leaf a=mkaply
git-svn-id: svn://10.0.0.236/trunk@146026 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-14 23:50:21 +00:00
jaggernaut%netscape.com
e6ed34a3e1
Bug 151916: substring helpers for start and end (StringHead, StringTail, Substring(string, start)). r=dbaron, sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@144818 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 07:42:24 +00:00
dwitte%stanford.edu
c443d50724
Bug 113733: nsXPIDLCString doesn't have an assignment operator.
...
adds |operator=( const self_type& )| to nsSharable{C}String and nsXPIDL{C}String, to prevent the compiler from synthesizing its own (which won't do the right thing).
This should fix a bunch of XPIDLString-related cfront compile warnings.
original patch by jag, updated by me; r=dbaron, sr=jag.
git-svn-id: svn://10.0.0.236/trunk@144771 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-12 07:14:37 +00:00
darin%netscape.com
9c25ef7a21
fixes bug 163988 'Crashes at www.macgamer.com (HREF="&#)' patch=waltershen@netscape.com r=dbaron sr=jag
...
git-svn-id: svn://10.0.0.236/trunk@144399 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-02 21:20:14 +00:00
jshin%mailaps.org
5caccfff36
bug 183156 (a part of) : rename CopyUTF16toASCII as LossyCopyUTF16toASCII (r,sr=jag)
...
git-svn-id: svn://10.0.0.236/trunk@144210 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-27 07:44:13 +00:00
jshin%mailaps.org
bf657d4d62
bug 183156 : replace UCS2 in function/method names with UTF16 and update the
...
document accordingly. r=jag, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@144046 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 04:30:57 +00:00
jaggernaut%netscape.com
57d5e83c5f
Bug 210160: Add nsStringComparator parameter to String(Begins)|(Ends)With. r=bzbarsky, sr=dbaron
...
Bug 210162: Fix up comments, argument names of atom getters in nsIAtom.idl. r=bzbarsky, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144015 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 02:59:51 +00:00
jst%netscape.com
5bea629223
Fixing part of bug 209699 (and more of bug 87677). Implement char* and PRUnichar* versions of Copy/AppendUTF*toUTF*(). r=alecf@flett.org, r=dbaron@dbaron.org, sr=jaggernaut@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@143925 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 05:17:55 +00:00
jst%netscape.com
24dfdf0a3e
Fixing typo in comment.
...
git-svn-id: svn://10.0.0.236/trunk@143845 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 06:52:16 +00:00
jst%netscape.com
223d557551
Fixing typo in comment.
...
git-svn-id: svn://10.0.0.236/trunk@143798 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 16:30:35 +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
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
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
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
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
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
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
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
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
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
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
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
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
dbaron%fas.harvard.edu
c53c56f3f7
Make GetImplementationFlags more useful/extensible by changing the default implementation to return zero rather than returning the flags from the shared buffer handle, and add a constant for one expected future use. b=109571 r=jag sr=scc
...
git-svn-id: svn://10.0.0.236/trunk@121733 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-17 02:53:34 +00:00
dougt%netscape.com
d6cc711878
Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756
...
git-svn-id: svn://10.0.0.236/trunk@121534 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 18:55:21 +00:00
jaggernaut%netscape.com
d7c8a2d045
Bug 139649: Fix string code to use IsDependentOn instead of depending on nsAPromiseString type. r=scc, sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@121513 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 03:28:44 +00:00
alecf%netscape.com
61312b4eeb
fix bug 139633 - as a part of freezing nsAString, move Left/Right/Mid back into nsString, and fix consumers to start using Substring()
...
r=jag, sr=darin
git-svn-id: svn://10.0.0.236/trunk@120220 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-29 20:29:54 +00:00
dbaron%fas.harvard.edu
50a762ccea
Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
...
git-svn-id: svn://10.0.0.236/trunk@117360 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-24 02:28:08 +00:00
dbaron%fas.harvard.edu
772b5b8c58
Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
...
git-svn-id: svn://10.0.0.236/trunk@117354 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-24 00:16:18 +00:00
alecf%netscape.com
f4ad21ae3a
a further nsString api reduction: remove the last case-insensitive PRUnichar*-to-PRUnichar* comparisons, moving to new API, and remove old methods from nsString. r=dougt, sr=jag a=scc
...
git-svn-id: svn://10.0.0.236/trunk@116842 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 06:46:56 +00:00
darin%netscape.com
04849998e1
fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
...
git-svn-id: svn://10.0.0.236/trunk@115936 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 07:48:55 +00:00
dp%netscape.com
7f327f1aa9
bug 119631 nsSlidingString using a delete callback function r=dbaron@fas.harvard.edu, sr=jaggernaut, a=asa
...
git-svn-id: svn://10.0.0.236/trunk@115656 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-02 21:22:41 +00:00
dbaron%fas.harvard.edu
cdf4582e1f
nsDependentSingleFragmentSubstring shouldn't pretend to have a flat buffer, since it's only guaranteed to be single fragment, not null-terminated. b=122727 sr=jag r=alecf
...
git-svn-id: svn://10.0.0.236/trunk@114869 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 02:17:09 +00:00
hwaara%chello.se
b82dbf0f7c
#123347 , "Remove #if 0-ed nsPrintfCString::GetReadableFragment()",
...
#123354 , "Remove nsAFlatString.cpp and nsDependentString.cpp"
r/sr=jag, shaver
git-svn-id: svn://10.0.0.236/trunk@113796 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 15:39:52 +00:00
hyatt%netscape.com
f876797bfb
Fix string fragments to compile in Objective C++ (for Cocoa widgets). r=danm, sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@112760 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:05:18 +00:00
jst%netscape.com
2337395ba4
Fixing part of bug 118933. Speeding up the global resolve hook in the DOM JS helpers by eliminating the use of nsHashtable and nsStringKey in favor of pldhash. Adding global HashString(const nsA[C]String&) functions that calculate a hash code from a nsA[C]String, code by dbaron@fas.harward.edu. Also checking in brendan@mozilla.org's fix for a type error in the jsdhash/pldhash API found while working on this. sr=brendan@mozilla.org, r=peterv@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@112375 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 04:08:14 +00:00