Closed Bug 1007581 Opened 11 years ago Closed 5 years ago

Rename FindEncodingForLabel* methods to have shorter names

Categories

(Core :: Internationalization, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: hsivonen, Unassigned)

References

Details

Attachments

(1 file)

Follow-up from bug 943268.
Attached patch RenameSplinter Review
Note that this naming is consistent with DecoderForEncoding(), etc., methods.
Attachment #8419276 - Flags: review?(VYV03354)
I have a bit concern about the consistency with the WebIDL codegen. The codegen uses GetXxx() for fallible methods and Xxx() for infallible methods. Can we drop the "EncodingUtils::" part? All methods are static anyway. "mozilla::dom::encoding::EncodingUtils::Foo()" looks a bit redundant to me.
Attachment #8419276 - Flags: review?(VYV03354)
(In reply to Masatoshi Kimura [:emk] from comment #2) > I have a bit concern about the consistency with the WebIDL codegen. The > codegen uses GetXxx() for fallible methods and Xxx() for infallible methods. Do you mean these names should start with "Get" even though these aren't getters? > Can we drop the "EncodingUtils::" part? All methods are static anyway. > "mozilla::dom::encoding::EncodingUtils::Foo()" looks a bit redundant to me. Do you mean getting rid of the class in EncodingUtils while keeping the files names EncodingUtils.h/cpp?
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: