Closed
Bug 1007581
Opened 11 years ago
Closed 5 years ago
Rename FindEncodingForLabel* methods to have shorter names
Categories
(Core :: Internationalization, enhancement)
Core
Internationalization
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: hsivonen, Unassigned)
References
Details
Attachments
(1 file)
43.17 KB,
patch
|
Details | Diff | Splinter Review |
Follow-up from bug 943268.
Reporter | ||
Comment 1•11 years ago
|
||
Note that this naming is consistent with DecoderForEncoding(), etc., methods.
Attachment #8419276 -
Flags: review?(VYV03354)
Comment 2•11 years ago
|
||
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.
Comment 3•11 years ago
|
||
Attachment #8419276 -
Flags: review?(VYV03354)
Reporter | ||
Comment 4•11 years ago
|
||
(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?
Reporter | ||
Updated•5 years ago
|
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.
Description
•