From 6a5e2f439e316eff2840ed37df78d6b84e98d1a8 Mon Sep 17 00:00:00 2001 From: Rangi Date: Sun, 9 May 2021 17:23:57 -0400 Subject: [PATCH] Fix the `STRFMT` documentation in rgbasm(5) Fixes #886 --- src/asm/rgbasm.5 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/asm/rgbasm.5 b/src/asm/rgbasm.5 index b7c114b2..06ba34cd 100644 --- a/src/asm/rgbasm.5 +++ b/src/asm/rgbasm.5 @@ -399,14 +399,14 @@ Most of them return a string, however some of these functions actually return an .It Fn STRLWR str Ta Returns Ar str No with all letters in lowercase. .It Fn STRRPL str old new Ta Returns Ar str No with each non-overlapping occurrence of the substring Ar old No replaced with Ar new . .It Fn STRFMT fmt args... Ta Returns the string Ar fmt No with each -.It Fn CHARLEN str Ta Returns the number of charmap entries in Ar str No with the current charmap. -.It Fn CHARSUB str pos Ta Returns the substring for the charmap entry at Ar pos No in Ar str No (first character is position 1, last is position -1) with the current charmap. .Ql %spec pattern replaced by interpolating the format .Ar spec with its corresponding argument in .Ar args .Pq So %% Sc is replaced by the So % Sc character . +.It Fn CHARLEN str Ta Returns the number of charmap entries in Ar str No with the current charmap. +.It Fn CHARSUB str pos Ta Returns the substring for the charmap entry at Ar pos No in Ar str No (first character is position 1, last is position -1) with the current charmap. .El .Ss Character maps When writing text strings that are meant to be displayed on the Game Boy, the character encoding in the ROM may need to be different than the source file encoding.