Merge pull request #143 from sonarsphere/master

Fix for caret positioning on applying a new mask and adding characters before a mask character
Merge pull request #147 from sonarsphere/master

Bug in calculating difference between mask characters between old and new field values
faster syntax and misc
fixing test
Merge pull request #1 from igorescobar/master

Rebase