See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| # Xcode 4.3.3 | |
| Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn) | |
| Target: x86_64-apple-darwin11.4.0 | |
| Thread model: posix | |
| # Xcode 4.3.2 | |
| Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) | |
| Target: x86_64-apple-darwin11.4.0 | |
| Thread model: posix |
| extension Data { | |
| /** | |
| Consumes the specified input stream, creating a new Data object | |
| with its content. | |
| - Parameter reading: The input stream to read data from. | |
| - Note: Closes the specified stream. | |
| */ | |
| init(reading input: InputStream) { | |
| self.init() | |
| input.open() |
| // Very slightly adapted from http://stackoverflow.com/a/30141700/106244 | |
| // 99.99% Credit to Martin R! | |
| // Mapping from XML/HTML character entity reference to character | |
| // From http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references | |
| private let characterEntities : [String: Character] = [ | |
| // XML predefined entities: | |
| """ : "\"", | |
| "&" : "&", |
Private framework is for apple use only, and usage of private framework may cause rejection of app submission. You can use class-dump to get method signatures but you can not get any constants or C functions.