NSString-SurrogatePair 1.0.2

NSString-SurrogatePair 1.0.2

TestsTested
LangLanguage Obj-CObjective C
License Apache 2
ReleasedLast Release Jan 2016

Maintained by Yodle, Inc..



  • By
  • Yodle

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.