MCPcopy Create free account
hub / github.com/EasyIME/PIME / encode

Function encode

installer/inetc/Contrib/Inetc/inetc.cpp:296–303  ·  view source on GitHub ↗

Base64 encode one byte */

Source from the content-addressed store, hash-verified

294
295/* Base64 encode one byte */
296static TCHAR encode(unsigned char u) {
297
298 if(u < 26) return TEXT('A')+u;
299 if(u < 52) return TEXT('a')+(u-26);
300 if(u < 62) return TEXT('0')+(u-52);
301 if(u == 62) return TEXT('+');
302 return TEXT('/');
303}
304
305TCHAR *encode_base64(int size, TCHAR *src, TCHAR *dst) {
306

Callers 1

encode_base64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected