Merge pull request #16 from nicferrier/master

adding s-format as per #15
Add Nic Ferrier to list of contributors
Updated s-format examples.
s-match: support optional capture groups

The values of match-data do not seem to support the ideal case. For the
test of "(abc)(def)?" matching against "abc", the most reasonable result
would be ("abc" "abc" nil); however, match-data provides no indication
of the second capture group.

Without this, though, s-match errors when match-data contains nils.
Merge pull request #17 from pd/optional-capture-groups

s-match: support optional capture groups
Fix whitespace
Add s-numeric?
Bump to 1.3.1
Add s-capitalized?
Added `s-split' alias for `split-string'.

According to the "What's with the built-in wrappers?" section of the
README the API should be complete even if it simply wraps emacs
functionality.  Therefore an alias `s-split' for `split-string' should
exist.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Changed `s-split' from an alias to a defun.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Added example for s-split.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
s-match: Save match-data and support START parameter.

`s-match' should probably save external match-data or the behavior
should be documented.  Support for the START parameter of
`string-match' was also added.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Add START parameter to s-matches?.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
s-numeric?: Match the complete line.

(s-numeric? "z7") should return nil.  In the current version it
returns t as soon as a digit is in the string.

However (s-numeric? "7\nz") still returns t.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
s-*case?: Use character classes instead of range.

The built-in character classes [:upper:]/[:lower:] take non-ascii
characters into account.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
s-split: changed order of first two params.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
s-split: changed order of first two parameters in usage and test.

Sorry.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Merge pull request #20 from ruediger/s-split

Added `s-split' alias for `split-string'.
Merge pull request #22 from ruediger/s-numeric

Fix regexp matching in s-numeric?,s-*case?