Merge branch 'develop'
Merge branch 'develop'
Merge branch 'develop'
Fix bug when parsing character sets in patterns
Fix handling of anchoring pattern when starting inside the string

Changes the handling of '^' to mean where you start looking in the
string and not the actual beginning of the string. This follows
lua. Also took the opportunity to standardise some function naming
conventions.
Get the offset counting correct for captures
Fix where table.insert puts value when inserting last
Improve update_val to never check if tree needs rebalancing
fix a bug of os.date
Fix #46: Incorrect results of math.floor and math.ceil
Merge pull request #45 from jacktang/master
Merge pull request #47 from Zert/floor_ceil
Merge remote-tracking branch 'upstream/develop' into develop