fix discus links
fix code selection color
Fixed infinite loop in substr_count

If both needle and haystack are empty strings, enters and infinte loop.
PHP handles this as so:
php -r "var_dump(substr_count('', ''));"
PHP Warning:  substr_count(): Empty substring in Command line code on line 1
bool(false)
Merge pull request #42 from jbboehr/patch-1

Fixed infinite loop in substr_count
Removing similar_text.js from _unported, cause it's been already ported
fix typo
Fix error handling bug on xdiff_string_patch.js
Merge pull request #45 from ducksmanager/master

Typo in xdiff_string_patch leading to error on lines 169-170
Uppercase accented characters

Now `ucwords('ángel')` returns 'Ángel'
Merge pull request #46 from unRob/patch-1

Uppercase accented characters
Refactored

The main idea is to remove the huge switch cases.
Adding some Javascript good practices (mappings, use of natives).
Passed from 181 lines and 446 colums to 131 lines and 107 columns.

It passes the examples and I'm using it.
Fixes #45 and creates a test that works with the new version
Update functions/strings/sprintf.js

Fix the bug of printing 64-bit long integers.
Merge pull request #53 from Allidylls/patch-1

Update functions/strings/sprintf.js
'd' flag should use truncated number not rounded
Merge pull request #51 from ducksmanager/master

Fixes #45 (xdiff_string_patch : Patched string doesn't contain end of original string)
Merge pull request #50 from amatiasq/patch-1

Refactored
date.js JSLint compatibility

Changes to the date() function to allow it to pass JSLint, with the following parameters:

/*jslint bitwise: true, nomen: true, sloppy: true, white: true */

I didn't touch the bitwise operations, because I don't understand all of the repercussions.
Add flip support for ordered associative array; add example to array_change_key_case() and optimize
fix unpack() to work with shorts (Ssv): add missing parenthesis around bit shift