Skip to content

Provide "toCharCode" to complement String.fromCharCode #958

Closed
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


The String class provides fromCharCode, but has no matching toCharCode. The lack of this is a JavaScriptism, but it's useful to provide this for handling control characters. GWT provides this by allowing casts from char to int and generates the JS with the appropriate integer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions