     public static func fontAwesomeIconWithName(name: FontAwesome) -> String {
         return name.rawValue.substringToIndex(name.rawValue.startIndex.advancedBy(1))
     }
+
+    /// Get a FontAwesome icon string with the given CSS icon code. Icon code can be found here: http://fontawesome.io/icons/
+    ///
+    /// - parameter code: The preferred icon name.
+    /// - returns: A string that will appear as icon with FontAwesome.
+    public static func fontAwesomeIconWithCode(code: String) -> String? {
+        guard let raw = FontAwesomeIcons[code], icon = FontAwesome(rawValue: raw) else {
+            return nil
+        }
+
+        return self.fontAwesomeIconWithName(icon)
+    }
 }
 
 /// A FontAwesome extension to UIImage.

    }
}

public extension String {

    /// Get a FontAwesome icon string with the given CSS icon code. Icon code can be found here: http://fontawesome.io/icons/
    ///
    /// - parameter code: The preferred icon name.
    /// - returns: A string that will appear as icon with FontAwesome.
    public static func fontAwesomeIconWithCode(code: String) -> String? {
        guard let raw = FontAwesomeIcons[code], icon = FontAwesome(rawValue: raw) else {
          return nil
        }

        return self.fontAwesomeIconWithName(icon)
    }
}




import UIKit
import CoreText

// MARK: - Public

