Closed Bug 75164 Opened 23 years ago Closed 23 years ago

[tracking bug] work on |ReplaceSubstring|

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: scc, Assigned: scc)

References

Details

Attachments

(5 files)

rickg's |ReplaceSubstring| has never worked and now people are starting to
complain.  This bug is to track work done to resolve this situation.
Blocks: 70090
Status: NEW → ASSIGNED
Depends on: 43509
Depends on: 74904
Depends on: 74896
+      /* mutable */ int mNumberOfMatches;
PRIn32 ?

+    int N = mNumberOfMatches;

Ditto. |N| risks collision with macros; use longer name?

+    long changePerReplacement = long(mReplacement.Length()) - 
long(mPattern.Length());

PRInt32 again?
I like that one. sr=sfraser
The fix to this bug is that we're going to replace the entire implementation of
|ReplaceSubstring| with the new |nsSubstituteC?String| generator (the
implementation of which was introduced right here in this bug :-).  See bug
#82456 for details of making everyone use the new machinery.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Component: String → XPCOM
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: