タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

swiftとunicodeに関するrryuのブックマーク (1)

  • Swiftでの文字列比較におけるUnicode正規化を巡る注意点 - Qiita

    これは,こちらのサイトによると, Depending on your requirements, this may or may not be what you want, but it is certainly consistent with the overall design of the String type to abstract away as many Unicode details as possible. Rule of thumb: if two strings look equal to the user, they will be equal in your code. つまり,「Unicodeでの実装にかかわらず,ユーザ側からの見た目が同じであるからには,コード上でも同一として扱われるべきである」という原則に基づいているとのことです。 実際,この仕様はApple

    Swiftでの文字列比較におけるUnicode正規化を巡る注意点 - Qiita
    rryu
    rryu 2014/10/27
    正規化して比較するメソッドがないのはNSStringでやれということかと思っていたら実際はbyte by byteで比較する方が無かったとは。
  • 1