aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-01-17 17:16:03 -0600
committerRob Landley <rob@landley.net>2016-01-17 17:16:03 -0600
commitba86864699997b0da780e15fd6be33c8a556e927 (patch)
treea8dea4dcbac3ba9c075ef2df54a77f36ddc2d4d9 /lib/lib.h
parent3b17f66c10af679f7ce3cd7b17af3b13664cde0c (diff)
downloadtoybox-ba86864699997b0da780e15fd6be33c8a556e927.tar.gz
Extend utf8 fontmetrics so ps can use them.
Also, I forgot to check in uuid_show() last time.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/lib.h b/lib/lib.h
index 2338037c..f1cea22e 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -195,6 +195,7 @@ void base64_init(char *p);
int yesno(int def);
int qstrcmp(const void *a, const void *b);
void create_uuid(char *uuid);
+char *show_uuid(char *uuid);
#define HR_SPACE 1 // Space between number and units
#define HR_B 2 // Use "B" for single byte units
@@ -216,7 +217,9 @@ struct linestack *linestack_load(char *name);
int crunch_str(char **str, int width, FILE *out,
int (*escout)(FILE *out, int cols, char **buf));
int draw_str(char *start, int width);
-int draw_rstr(char *start, int width);
+int utf8len(char *str);
+int utf8skip(char *str, int width);
+int draw_trim(char *str, int padto, int width);
// interestingtimes.c
int xgettty(void);