Latest 1.0.2
Homepage https://github.com/yodle/NSString-SurrogatePair
License Apache 2.0
Platforms ios 8.0, requires ARC
Authors

CocoaPods

An NSString category to identify and remove surrogate pair UTF-8 characters.
This is to support the unicode character set in MySQL which handles a maximum of three bytes per multibyte character.

Usage

BOOL containsSurrogatePair = [@"✨" containsSurrogatePair];
NSString* stringByRemovingSurrogatePairs = [@"✨" stringByRemovingSurrogatePairs];

Install

Use CocoaPods.

pod 'NSString-SurrogatePair'

Tests

This project is unit tested and ready for production. To run the tests, open the sample project and run the tests against the sample application target.

Credits

This is loosely based on another pod: NSString-RemoveEmoji

License

Copyright (c) 2016 Yodle
Licensed under the Apache 2 License.

Latest podspec

{
    "name": "NSString-SurrogatePair",
    "version": "1.0.2",
    "summary": "An NSString category to identify and remove surrogate pair UTF-8 characters.",
    "description": "This is to support the unicode character set in MySQL which handles a nmaximum of three bytes per multibyte character.nThis is loosely based on another pod: woxtu/NSString-RemoveEmoji",
    "homepage": "https://github.com/yodle/NSString-SurrogatePair",
    "license": "Apache 2.0",
    "authors": {
        "Yodle": "[email protected]"
    },
    "source": {
        "git": "https://github.com/yodle/NSString-SurrogatePair.git",
        "tag": "1.0.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*"
}

Pin It on Pinterest

Share This