sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
MultiJson::OkJson#ucharcopy
Copies the valid UTF-8 bytes of a single character from string s at position i to I/O object t, and returns the number of bytes copied. If no valid UTF-8 char exists at position i, ucharcopy writes Ustrerr and returns 1.
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/multi_json/lib/multi_json/vendor/okjson.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MultiJson--OkJson-ucharcopy-for-pr
# Commit to gitgit add app/server/ruby/vendor/multi_json/lib/multi_json/vendor/okjson.rbgit commit -m "better docs for MultiJson::OkJson#ucharcopy"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MultiJson--OkJson-ucharcopy-for-pr
hub pull-request
# Celebrate!