Skip to content

[SR-375] Counting emoji that recently added to iOS and OS X. #42992

Closed
@norio-nomura

Description

@norio-nomura
Previous ID SR-375
Radar None
Original Reporter @norio-nomura
Type Bug
Status Closed
Resolution Won't Do

Attachment: Download

Environment

OS X 10.11.2 (15C50)
Apple Swift version 2.2-dev (LLVM 3ebdbb2c7e, Clang f66c5bb67b, Swift 17fe37d)
Target: x86_64-apple-macosx10.9

Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug, Runtime
Assignee None
Priority Medium

md5: 2cba750f1160e4f7e09133b0a53d5513

Issue Description:

See screenshot for viewing rendered emoji.

// Does following results are expected?

"\u{0001F468}\u{200D}\u{0001F469}\u{200D}\u{0001F467}\u{200D}\u{0001F467}".characters.count // 4
"\u{0001F44D}\u{0001F3FB}".characters.count // 2

What's the difference to following:

"\u{0001F1EF}\u{0001F1F5}".characters.count // 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.not a bugResolution → not a bug: Reported as a bug but turned out to be expected behavior or programmer errorstandard libraryArea: Standard library umbrella

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions