Libraryless. Click here for Pure Java version (52L/1K).
static byte[] toASCII(S s) { ret s.getBytes(java.nio.charset.StandardCharsets.US_ASCII); } static byte toASCII(char c) { ret toASCII(str(new char[] {c}))[0]; }
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035664 |
Snippet name: | toASCII |
Eternal ID of this version: | #1035664/4 |
Text MD5: | 5dc608362b799db197e27cd6b30d0964 |
Transpilation MD5: | 9c8aba75a4195a9c993509a255e46be0 |
Author: | stefan |
Category: | javax / io |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-07-01 05:41:49 |
Source code size: | 170 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 137 / 204 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |