Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A subclass of Cocoa's NSNumberFormatter that adds ordinals to numbers.
Objective-C
Tree: 5d4b503975

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ADNOrdinalNumberFormatter.xcodeproj
English.lproj
ADNOrdinalNumberFormatter.h
ADNOrdinalNumberFormatter.m
ApplicationDelegate.h
ApplicationDelegate.m
Info.plist
Prefix.pch
README.textile
main.m

README.textile

ADNOrdinalNumberFormatter

A simple subclass of NSNumberFormatter that adds an ordinal to a number. e.g. 1st, 2nd, 110th.

It will also strip out any trailing text, so a number can be entered with or without an ordinal.

Usage

There are two braches to this repository. master and production

master branch

This branch contains the class extension files as well as an Xcode project (version 3.2 and above) that shows how to use the formatter.

This is the branch to use to see how to use the formatter if an example is needed. It as also the branch that further development of the class should be performed on.

production branch

This is the branch that should be used if one wants to use git submodules to use the formatter in other projects. This will only contain the class files themselves without the Xcode project and the example code.

Sometimes, there may be artifacts left over when switching from master to production. These are files that are ignored by git and are easily cleaned up by running

git clean -dxf 
Something went wrong with that request. Please try again.