[gnome-characters] libgc: Add more blocks to Pictures
- From: Daiki Ueno <dueno src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters] libgc: Add more blocks to Pictures
- Date: Tue, 24 Feb 2015 02:41:58 +0000 (UTC)
commit 5bfbb7cd88c0e06bc357da40288571a43f43fe3e
Author: Daiki Ueno <dueno src gnome org>
Date: Tue Feb 24 11:41:19 2015 +0900
libgc: Add more blocks to Pictures
Add Mahjong Tiles, Domino Tiles, and Playing Cards.
lib/gc.c | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/lib/gc.c b/lib/gc.c
index 81b47c0..efc8733 100644
--- a/lib/gc.c
+++ b/lib/gc.c
@@ -271,7 +271,7 @@ gc_enumerate_character_by_category (GcCharacterIter *iter,
case GC_CATEGORY_PICTURE:
{
- static uc_block_t picture_blocks[3];
+ static uc_block_t picture_blocks[6];
static gsize picture_blocks_size = 0;
static gsize picture_blocks_initialized = 0;
if (g_once_init_enter (&picture_blocks_initialized))
@@ -288,6 +288,21 @@ gc_enumerate_character_by_category (GcCharacterIter *iter,
if (block)
memcpy (&picture_blocks[picture_blocks_size++], block,
sizeof (uc_block_t));
+ /* 1F000..1F02F; Mahjong Tiles */
+ block = uc_block (0x1F000);
+ if (block)
+ memcpy (&picture_blocks[picture_blocks_size++], block,
+ sizeof (uc_block_t));
+ /* 1F030..1F09F; Domino Tiles */
+ block = uc_block (0x1F030);
+ if (block)
+ memcpy (&picture_blocks[picture_blocks_size++], block,
+ sizeof (uc_block_t));
+ /* 1F0A0..1F0FF; Playing Cards */
+ block = uc_block (0x1F0A0);
+ if (block)
+ memcpy (&picture_blocks[picture_blocks_size++], block,
+ sizeof (uc_block_t));
/* 1F300..1F5FF; Miscellaneous Symbols and Pictographs */
block = uc_block (0x1F300);
if (block)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]