Fix typos/improve grammar in charsets.c / strutil.h

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Yury V. Zaytsev 2024-09-06 09:55:26 +02:00 committed by Andrew Borodin
parent 92bb95998e
commit 0775539b08
2 changed files with 8 additions and 8 deletions

View File

@ -288,7 +288,7 @@ init_translation_table (int cpsource, int cpdisplay)
int i; int i;
GIConv cd; GIConv cd;
/* Fill inpit <-> display tables */ /* Fill input <-> display tables */
if (cpsource < 0 || cpdisplay < 0 || cpsource == cpdisplay) if (cpsource < 0 || cpdisplay < 0 || cpsource == cpdisplay)
{ {

View File

@ -54,15 +54,15 @@
*/ */
typedef enum typedef enum
{ {
/* success means, that conversion has been finished successfully /* Success means, that the conversion has been finished successfully
*/ */
ESTR_SUCCESS = 0, ESTR_SUCCESS = 0,
/* problem means, that not every characters was successfully converted (They are /* Problem means, that not every character was successfully converted (some are
* replaced with questionmark). So is impossible convert string back. * replaced with question marks). So it is impossible to convert string back.
*/ */
ESTR_PROBLEM = 1, ESTR_PROBLEM = 1,
/* failure means, that conversion is not possible (example: wrong encoding /* Failure means, that the conversion is not possible (example: wrong encoding
* of input string) * of the input string)
*/ */
ESTR_FAILURE = 2 ESTR_FAILURE = 2
} estr_t; } estr_t;
@ -75,9 +75,9 @@ typedef enum
J_RIGHT = 0x02, J_RIGHT = 0x02,
J_CENTER = 0x03, J_CENTER = 0x03,
/* if there is enough space for string on terminal, /* if there is enough space for string on terminal,
* string is centered otherwise is aligned to left */ * string is centered otherwise is aligned to the left */
J_CENTER_LEFT = 0x04, J_CENTER_LEFT = 0x04,
/* fit alignment, if string is to long, is truncated with '~' */ /* fit alignment: if string is too long, truncate with '~' */
J_LEFT_FIT = 0x11, J_LEFT_FIT = 0x11,
J_RIGHT_FIT = 0x12, J_RIGHT_FIT = 0x12,
J_CENTER_FIT = 0x13, J_CENTER_FIT = 0x13,