NSString+ANSI.h 532 B

1234567891011121314151617
  1. // Created by Kent Karlsson on 3/11/16.
  2. // Copyright (c) 2016 Bit Bar. All rights reserved.
  3. // Copyright (c) 2017 GitHub, Inc.
  4. // Use of this source code is governed by the MIT license that can be
  5. // found in the LICENSE file.
  6. #ifndef ATOM_BROWSER_UI_COCOA_NSSTRING_ANSI_H_
  7. #define ATOM_BROWSER_UI_COCOA_NSSTRING_ANSI_H_
  8. #import <Foundation/Foundation.h>
  9. @interface NSString (ANSI)
  10. - (BOOL)containsANSICodes;
  11. - (NSMutableAttributedString*)attributedStringParsingANSICodes;
  12. @end
  13. #endif // ATOM_BROWSER_UI_COCOA_NSSTRING_ANSI_H_