Jump to content

GSTrans string conversion: Difference between revisions

m
→‎{{header|Wren}}: Added previously missing import and changed to Wren S/H
m ([Emacs Lisp]update output format)
m (→‎{{header|Wren}}: Added previously missing import and changed to Wren S/H)
Line 1,063:
 
If an invalid byte (following the "|" flag) is encountered whilst decoding, it is decoded as if the flag were not present.
<syntaxhighlight lang="ecmascriptwren">classimport GSTrans"./fmt" for {Fmt
class GSTrans {
static encode(s, upper) {
if (!(s is String && s.count > 0)) Fiber.abort("Argument must be a non-empty string.")
9,485

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.