Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
Update README.rdoc
Commit Description:
Update README.rdoc
var toInteger = require ( './_to-integer' );
var defined = require ( './_defined' );
// true -> String#at
// false -> String#codePointAt
module . exports = function ( TO_STRING ) {
return function ( that , pos ) {
var s = String ( defined ( that ));
var i = toInteger ( pos );
var l = s . length ;
var a , b ;
if ( i < 0 || i >= l ) return TO_STRING ? '' : undefined ;
a = s . charCodeAt ( i );
return a < 0xd800 || a > 0xdbff || i + 1 === l || ( b = s . charCodeAt ( i + 1 )) < 0xdc00 || b > 0xdfff
? TO_STRING ? s . charAt ( i ) : a
: TO_STRING ? s . slice ( i , i + 2 ) : ( a - 0xd800 << 10 ) + ( b - 0xdc00 ) + 0x10000 ;
};
};
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings