summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-08 18:48:41 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-08 18:48:41 +0000
commit859a5ab42d2c9922f5ddc0b73961bb4231e379b7 (patch)
tree3fbd5e9d68ebe65470346bf7676ca92143452e21 /crawl-ref/source/view.h
parente2b75cbb2ad69c4cfd62eca04a82ee3fa04e3d6b (diff)
downloadcrawl-ref-859a5ab42d2c9922f5ddc0b73961bb4231e379b7.tar.gz
crawl-ref-859a5ab42d2c9922f5ddc0b73961bb4231e379b7.zip
When showing glyphs in messages (as in the tutorial), use stringize_glyph() to
convert Unicode glyphs to multibyte sequences. Added multibyte_strlen to calculate string lengths correctly when dealing with multibyte strings. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1560 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.h')
-rw-r--r--crawl-ref/source/view.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/view.h b/crawl-ref/source/view.h
index 38bdc47b61..8bf9e79237 100644
--- a/crawl-ref/source/view.h
+++ b/crawl-ref/source/view.h
@@ -114,7 +114,10 @@ void get_item_glyph(const item_def *item, unsigned *glych,
unsigned short *glycol);
void get_mons_glyph(const monsters *mons, unsigned *glych,
unsigned short *glycol);
-int get_screen_glyph( int x, int y );
+unsigned get_screen_glyph( int x, int y );
+std::string stringize_glyph(unsigned glyph);
+int multibyte_strlen(const std::string &s);
+
void get_item_symbol(unsigned int object, unsigned *ch,
unsigned short *colour);