Remove table that was not licensed under MIT
authorMiguel de Icaza <miguel@gnome.org>
Wed, 10 Feb 2016 23:15:23 +0000 (18:15 -0500)
committerMiguel de Icaza <miguel@gnome.org>
Wed, 10 Feb 2016 23:15:27 +0000 (18:15 -0500)
eglib/src/giconv.c

index 61db988909bdcb399dabe675754e09113eecc5ef..a6f222dfe8727421adf50308e7f6a11638144715 100644 (file)
@@ -777,42 +777,9 @@ g_convert (const gchar *str, gssize len, const gchar *to_charset, const gchar *f
  */
 
 /**
- * from http://home.tiscali.nl/t876506/utf8tbl.html
+ * An explanation of the conversion can be found at:
+ * http://home.tiscali.nl/t876506/utf8tbl.html
  *
- * From Unicode UCS-4 to UTF-8:
- * Start with the Unicode number expressed as a decimal number and call this ud.
- *
- * If ud <128 (7F hex) then UTF-8 is 1 byte long, the value of ud.
- *
- * If ud >=128 and <=2047 (7FF hex) then UTF-8 is 2 bytes long.
- *    byte 1 = 192 + (ud div 64)
- *    byte 2 = 128 + (ud mod 64)
- *
- * If ud >=2048 and <=65535 (FFFF hex) then UTF-8 is 3 bytes long.
- *    byte 1 = 224 + (ud div 4096)
- *    byte 2 = 128 + ((ud div 64) mod 64)
- *    byte 3 = 128 + (ud mod 64)
- *
- * If ud >=65536 and <=2097151 (1FFFFF hex) then UTF-8 is 4 bytes long.
- *    byte 1 = 240 + (ud div 262144)
- *    byte 2 = 128 + ((ud div 4096) mod 64)
- *    byte 3 = 128 + ((ud div 64) mod 64)
- *    byte 4 = 128 + (ud mod 64)
- *
- * If ud >=2097152 and <=67108863 (3FFFFFF hex) then UTF-8 is 5 bytes long.
- *    byte 1 = 248 + (ud div 16777216)
- *    byte 2 = 128 + ((ud div 262144) mod 64)
- *    byte 3 = 128 + ((ud div 4096) mod 64)
- *    byte 4 = 128 + ((ud div 64) mod 64)
- *    byte 5 = 128 + (ud mod 64)
- *
- * If ud >=67108864 and <=2147483647 (7FFFFFFF hex) then UTF-8 is 6 bytes long.
- *    byte 1 = 252 + (ud div 1073741824)
- *    byte 2 = 128 + ((ud div 16777216) mod 64)
- *    byte 3 = 128 + ((ud div 262144) mod 64)
- *    byte 4 = 128 + ((ud div 4096) mod 64)
- *    byte 5 = 128 + ((ud div 64) mod 64)
- *    byte 6 = 128 + (ud mod 64)
  **/
 gint
 g_unichar_to_utf8 (gunichar c, gchar *outbuf)