To Lowercase
Creates a string with all Unicode letters from the original string mapped to their lower case.
Examples
Filter
const std = @import("std");
pub fn main() void {
var buf: [20]u8 = undefined;
const output = std.ascii.lowerString(&buf, "Hello World!");
std.debug.print("{s}", .{output});
}
var str = "Hello World!";
console.log(str.toLowerCase());
package main
import (
"fmt"
"strings"
)
func main() {
fmt.Println(strings.ToLower("Gopher"))
}
Last Run
:
gopher