Function codePoint [src]

Serialize val as a Unicode codepoint. Returns error.InvalidCodepoint if val is not a valid Unicode codepoint.

Prototype

pub fn codePoint(self: *Serializer, val: u21) CodePointError!void

Parameters

self: *Serializerval: u21

Possible Errors

InvalidCodepoint
WriteFailed Error

See the Writer implementation for detailed diagnostics.

Source

pub fn codePoint(self: *Serializer, val: u21) CodePointError!void { try self.writer.print("'{f}'", .{std.zig.fmtChar(val)}); }