/NSString+UnicharUtilities.h

http://github.com/JanX2/google-diff-match-patch-Objective-C · C Header · 31 lines · 5 code · 5 blank · 21 comment · 0 complexity · 8d4715de31fd334de8bf7ad38dae53d2 MD5 · raw file

  1. /*
  2. * Diff Match and Patch
  3. *
  4. * Copyright 2010 geheimwerk.de.
  5. * http://code.google.com/p/google-diff-match-patch/
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. *
  19. * Author: fraser@google.com (Neil Fraser)
  20. * ObjC port: jan@geheimwerk.de (Jan Weiß)
  21. */
  22. #import <Foundation/Foundation.h>
  23. @interface NSString (UnicharUtilities)
  24. + (NSString *)diff_stringFromUnichar:(unichar)ch;
  25. - (NSString *)diff_substringWithCharacterAtIndex:(NSUInteger)anIndex;
  26. @end