Skip to content

Commit

Permalink
Merge pull request #88 from Raizlabs/feature/mr-fixit/add-special-ell…
Browse files Browse the repository at this point in the history
…ipsis

add special character - horizontal ellipsis
  • Loading branch information
ZevEisenberg committed Nov 11, 2015
2 parents 20996d6 + 88bed5f commit 9490edd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Example/BonMot.xcodeproj/project.pbxproj
Expand Up @@ -155,6 +155,7 @@
CDFDF5501B51880D00A1AD42 /* NSDictionary+BONEquality.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSDictionary+BONEquality.m"; sourceTree = "<group>"; };
CDFDF5531B518F3900A1AD42 /* BONDictionaryEqualityTestCase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BONDictionaryEqualityTestCase.m; sourceTree = "<group>"; };
DC26879CFC50F3E9302E163B /* Pods-Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Tests/Pods-Tests.debug.xcconfig"; sourceTree = "<group>"; };
E19B7EA11BF3C517002CD3D8 /* BONSpecialGenerator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = BONSpecialGenerator.swift; path = ../scripts/BONSpecialGenerator.swift; sourceTree = SOURCE_ROOT; };
EA798F8B87019E9A6673F5A3 /* Pods-BonMot.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BonMot.release.xcconfig"; path = "Pods/Target Support Files/Pods-BonMot/Pods-BonMot.release.xcconfig"; sourceTree = "<group>"; };
F79B786068DF6EE81053EF09 /* Pods-BonMot.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BonMot.release.xcconfig"; path = "Pods/Target Support Files/Pods-BonMot/Pods-BonMot.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -240,6 +241,7 @@
6003F594195388D20070C39A /* Supporting Files */ = {
isa = PBXGroup;
children = (
E19B7EA11BF3C517002CD3D8 /* BONSpecialGenerator.swift */,
CDFC93B61AE59FCA00C2B7C9 /* Fonts */,
6003F595195388D20070C39A /* BonMot-Info.plist */,
6003F596195388D20070C39A /* InfoPlist.strings */,
Expand Down
2 changes: 2 additions & 0 deletions Pod/Classes/BONSpecial.h
Expand Up @@ -26,6 +26,7 @@ typedef NS_ENUM(unichar, BONCharacter) {
BONCharacterFigureDash = 0x2012,
BONCharacterEnDash = 0x2013,
BONCharacterEmDash = 0x2014,
BONCharacterHorizontalEllipsis = 0x2026,
BONCharacterLineSeparator = 0x2028,
BONCharacterParagraphSeparator = 0x2029,
BONCharacterNarrowNoBreakSpace = 0x202F,
Expand All @@ -48,6 +49,7 @@ typedef NS_ENUM(unichar, BONCharacter) {
+ (NSString *)figureDash;
+ (NSString *)enDash;
+ (NSString *)emDash;
+ (NSString *)horizontalEllipsis;
+ (NSString *)lineSeparator;
+ (NSString *)paragraphSeparator;
+ (NSString *)narrowNoBreakSpace;
Expand Down
1 change: 1 addition & 0 deletions Pod/Classes/BONSpecial.m
Expand Up @@ -25,6 +25,7 @@ + (NSString *)nonBreakingHyphen { return @"\u2011"; }
+ (NSString *)figureDash { return @"\u2012"; }
+ (NSString *)enDash { return @"\u2013"; }
+ (NSString *)emDash { return @"\u2014"; }
+ (NSString *)horizontalEllipsis { return @"\u2026"; }
+ (NSString *)lineSeparator { return @"\u2028"; }
+ (NSString *)paragraphSeparator { return @"\u2029"; }
+ (NSString *)narrowNoBreakSpace { return @"\u202F"; }
Expand Down
1 change: 1 addition & 0 deletions scripts/BONSpecialGenerator.swift
Expand Up @@ -26,6 +26,7 @@ let specialCharacters: [unichar] = [
0x2012,
0x2013,
0x2014,
0x2026,
0x2028,
0x2029,
0x202F,
Expand Down

0 comments on commit 9490edd

Please sign in to comment.