亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pango-script.c

?? GTK+-2.0源碼之pango-1.15.6.tar.gz
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* Pango * pango-script.c: Script tag handling * * Copyright (C) 2002 Red Hat Software * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. * * Implementation of pango_script_iter is derived from ICU: * *  icu/sources/common/usc_impl.c * ********************************************************************** *   Copyright (C) 1999-2002, International Business Machines *   Corporation and others.  All Rights Reserved. ********************************************************************** * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, and/or sell copies of the Software, and to permit persons * to whom the Software is furnished to do so, provided that the above * copyright notice(s) and this permission notice appear in all copies of * the Software and that both the above copyright notice(s) and this * permission notice appear in supporting documentation. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL * INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * * Except as contained in this notice, the name of a copyright holder * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization * of the copyright holder. */#include <config.h>#include <stdlib.h>#include <string.h>#include "pango-script.h"#include "pango-script-table.h"#define PAREN_STACK_DEPTH 128typedef struct _ParenStackEntry ParenStackEntry;struct _ParenStackEntry{  int pair_index;  PangoScript script_code;};struct _PangoScriptIter{  const gchar *text_start;  const gchar *text_end;  const gchar *script_start;  const gchar *script_end;  PangoScript script_code;  ParenStackEntry paren_stack[PAREN_STACK_DEPTH];  int paren_sp;};#define PANGO_SCRIPT_TABLE_MIDPOINT (G_N_ELEMENTS (pango_script_table) / 2)static inline PangoScriptpango_script_for_unichar_bsearch (gunichar ch){  int lower = 0;  int upper = G_N_ELEMENTS (pango_script_table) - 1;  static int saved_mid = PANGO_SCRIPT_TABLE_MIDPOINT;  int mid = saved_mid;  do    {      if (ch < pango_script_table[mid].start)	upper = mid - 1;      else if (ch >= pango_script_table[mid].start + pango_script_table[mid].chars)	lower = mid + 1;      else	return pango_script_table[saved_mid = mid].script;      mid = (lower + upper) / 2;    }  while (lower <= upper);  return PANGO_SCRIPT_UNKNOWN;}/** * pango_script_for_unichar: * @ch: a Unicode character * * Looks up the #PangoScript for a particular character (as defined by * Unicode Standard Annex #24). No check is made for @ch being a * valid Unicode character; if you pass in invalid character, the * result is undefined. * * Return value: the #PangoScript for the character. * * Since: 1.4 **/PangoScriptpango_script_for_unichar (gunichar ch){  if (ch < G_N_ELEMENTS (pango_script_easy_table))    return pango_script_easy_table[ch];  else    return pango_script_for_unichar_bsearch (ch);}/**********************************************************************//** * pango_script_iter_new: * @text: a UTF-8 string * @length: length of @text, or -1 if @text is nul-terminated. * * Create a new #PangoScriptIter, used to break a string of * Unicode into runs by text. No copy is made of @text, so * the caller needs to make sure it remains valid until * the iterator is freed with pango_script_iter_free ().x * * Return value: the new script iterator, initialized *  to point at the first range in the text, which should be *  freed with pango_script_iter_free(). If the string is *  empty, it will point at an empty range. * * Since: 1.4 **/PangoScriptIter *pango_script_iter_new (const char *text,		       int         length){  PangoScriptIter *iter = g_slice_new (PangoScriptIter);  iter->text_start = text;  if (length >= 0)    iter->text_end = text + length;  else    iter->text_end = text + strlen (text);  iter->script_start = text;  iter->script_end = text;  iter->script_code = PANGO_SCRIPT_COMMON;  iter->paren_sp = -1;  pango_script_iter_next (iter);  return iter;}/** * pango_script_iter_free: * @iter: a #PangoScriptIter * * Frees a #PangoScriptIter created with pango_script_iter_new(). * * Since: 1.4 **/voidpango_script_iter_free (PangoScriptIter *iter){  g_slice_free (PangoScriptIter, iter);}/** * pango_script_iter_get_range: * @iter: a #PangoScriptIter * @start: location to store start position of the range, or %NULL * @end: location to store end position of the range, or %NULL * @script: location to store script for range, or %NULL * * Gets information about the range to which @iter currently points. * The range is the set of locations p where *start <= p < *end. * (That is, it doesn't include the character stored at *end) * * Since: 1.4 **/voidpango_script_iter_get_range (PangoScriptIter      *iter,			     G_CONST_RETURN char **start,			     G_CONST_RETURN char **end,			     PangoScript          *script){  if (start)    *start = iter->script_start;  if (end)    *end = iter->script_end;  if (script)    *script = iter->script_code;}static const gunichar paired_chars[] = {  0x0028, 0x0029, /* ascii paired punctuation */  0x003c, 0x003e,  0x005b, 0x005d,  0x007b, 0x007d,  0x00ab, 0x00bb, /* guillemets */  0x2018, 0x2019, /* general punctuation */  0x201c, 0x201d,  0x2039, 0x203a,  0x3008, 0x3009, /* chinese paired punctuation */  0x300a, 0x300b,  0x300c, 0x300d,  0x300e, 0x300f,  0x3010, 0x3011,  0x3014, 0x3015,  0x3016, 0x3017,  0x3018, 0x3019,  0x301a, 0x301b};static intget_pair_index (gunichar ch){  int lower = 0;  int upper = G_N_ELEMENTS (paired_chars) - 1;  while (lower <= upper)    {      int mid = (lower + upper) / 2;      if (ch < paired_chars[mid])	upper = mid - 1;      else if (ch > paired_chars[mid])	lower = mid + 1;      else	return mid;    }  return -1;}#define REAL_SCRIPT(script) \  ((script) > PANGO_SCRIPT_INHERITED)#define SAME_SCRIPT(script1, script2) \  (!REAL_SCRIPT (script1) || !REAL_SCRIPT (script2) || (script1) == (script2))#define IS_OPEN(pair_index) (((pair_index) & 1) == 0)/** * pango_script_iter_next: * @iter: a #PangoScriptIter * * Advances a #PangoScriptIter to the next range. If @iter * is already at the end, it is left unchanged and %FALSE * is returned. * * Return value: %TRUE if @iter was successfully advanced. * * Since: 1.4 **/gbooleanpango_script_iter_next (PangoScriptIter *iter){  int start_sp;  if (iter->script_end == iter->text_end)    return FALSE;  start_sp = iter->paren_sp;  iter->script_code = PANGO_SCRIPT_COMMON;  iter->script_start = iter->script_end;  for (; iter->script_end < iter->text_end; iter->script_end = g_utf8_next_char (iter->script_end))    {      gunichar ch = g_utf8_get_char (iter->script_end);      PangoScript sc;      int pair_index;      sc = pango_script_for_unichar (ch);      if (sc != PANGO_SCRIPT_COMMON)	pair_index = -1;      else	pair_index = get_pair_index (ch);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国产欧美日韩精品| 久久久精品欧美丰满| 亚洲乱码日产精品bd| 成人va在线观看| 中文字幕一区二区三区四区| 成人av在线资源网| 亚洲色图第一区| 欧美日韩免费不卡视频一区二区三区 | 成人自拍视频在线观看| 国产三级精品在线| 91亚洲精品久久久蜜桃网站| 亚洲综合色区另类av| 色悠久久久久综合欧美99| 亚洲综合视频在线观看| 欧美日韩在线综合| 国内成人精品2018免费看| 中文字幕乱码久久午夜不卡 | 亚洲国产日韩一级| 精品久久久久久综合日本欧美| 国产精品自拍三区| 综合网在线视频| 欧美人与z0zoxxxx视频| 激情亚洲综合在线| 自拍偷拍亚洲激情| 欧美一区二区三区色| 国产精品一线二线三线| 亚洲欧美偷拍三级| 欧美一区二区三区视频在线 | 蜜桃av噜噜一区| 国产精品嫩草99a| 欧美喷潮久久久xxxxx| 激情综合色丁香一区二区| 国产精品国产自产拍高清av王其| 欧美性xxxxxxxx| 国产伦精品一区二区三区在线观看| 国产精品毛片a∨一区二区三区 | 91浏览器打开| 日本91福利区| 日韩伦理免费电影| 精品乱人伦小说| 色猫猫国产区一区二在线视频| 美女视频网站久久| 亚洲精品老司机| 久久综合九色综合欧美98| 欧美性感一类影片在线播放| 国产精品99久久久久久久女警 | 中文字幕一区二区三区在线不卡| 91麻豆精品91久久久久久清纯 | 亚洲一线二线三线久久久| 精品国产亚洲在线| 欧美日韩午夜在线视频| 成人午夜视频福利| 九九视频精品免费| 婷婷久久综合九色综合绿巨人 | 亚洲激情图片qvod| 久久久精品欧美丰满| 欧美一区二区网站| 欧美自拍偷拍一区| 99久久精品情趣| 国产一二三精品| 久久成人18免费观看| 亚洲午夜激情av| 亚洲激情在线播放| 最新热久久免费视频| 国产欧美日韩久久| 久久伊人蜜桃av一区二区| 欧美一区二区在线看| 欧美伊人久久大香线蕉综合69| 9人人澡人人爽人人精品| 国产精品1区二区.| 国产高清久久久久| 国产综合色产在线精品| 青青草国产成人av片免费| 午夜精品免费在线观看| 亚洲综合免费观看高清完整版在线 | 亚洲同性同志一二三专区| 欧美国产精品一区| 欧美激情综合在线| 中文字幕电影一区| 国产精品灌醉下药二区| 亚洲国产精品成人综合| 久久精品人人做人人综合 | 国产一区二区三区日韩| 国产在线精品一区二区夜色| 精品一区二区三区免费| 精品无码三级在线观看视频| 国产在线精品一区二区不卡了| 精品在线一区二区三区| 国产真实乱子伦精品视频| 国产精品一级二级三级| 高清国产一区二区| 不卡av在线免费观看| 色综合视频在线观看| 欧美三级视频在线观看| 欧美久久久久中文字幕| 日韩三级高清在线| 国产日产精品一区| 亚洲三级在线免费| 亚洲二区在线观看| 麻豆成人久久精品二区三区小说| 久久国产乱子精品免费女| 国产成人超碰人人澡人人澡| 99久久免费视频.com| 日本道免费精品一区二区三区| 欧美日韩国产高清一区二区| 欧美成人艳星乳罩| 国产精品天美传媒沈樵| 亚洲成人一二三| 久久精品国产精品青草| 丰满亚洲少妇av| 欧美中文字幕一区| 久久亚洲综合色一区二区三区| 国产精品久久久爽爽爽麻豆色哟哟| 一区二区三区精品久久久| 日本v片在线高清不卡在线观看| 狠狠狠色丁香婷婷综合激情| 99久久伊人久久99| 日韩一区二区在线免费观看| 中文字幕中文字幕在线一区 | 久久国产免费看| 成人av手机在线观看| 欧美蜜桃一区二区三区| 久久精品综合网| 亚洲va天堂va国产va久| 国产精品一级在线| 欧美另类变人与禽xxxxx| 国产欧美一区二区精品秋霞影院| 亚洲国产裸拍裸体视频在线观看乱了 | 色素色在线综合| 精品成a人在线观看| 亚洲色图另类专区| 国产一区二区剧情av在线| 欧美三级中文字幕| 国产网红主播福利一区二区| 视频一区视频二区在线观看| 国产成人综合视频| 日韩一区二区三区四区五区六区 | 久久久夜色精品亚洲| 亚洲一区二区欧美| av电影在线观看完整版一区二区| 欧美一区二区免费| 亚洲最新视频在线观看| 粉嫩一区二区三区在线看| 欧美久久一二三四区| 一区二区三区精品久久久| 东方欧美亚洲色图在线| 精品国产一区二区三区久久久蜜月 | 欧美怡红院视频| |精品福利一区二区三区| 狠狠狠色丁香婷婷综合激情| 欧美乱妇20p| 亚洲一区二区视频在线| 91丨porny丨在线| 国产精品福利一区二区三区| 国产一区不卡视频| 亚洲精品在线电影| 青青草91视频| 欧美一区二区三区男人的天堂| 亚洲精品你懂的| 色综合咪咪久久| 国产精品国产三级国产普通话99| 国产成人免费xxxxxxxx| 欧美精品一区二区高清在线观看| 日韩国产欧美三级| 欧美精选午夜久久久乱码6080| 亚洲欧美日韩久久| 91免费版在线看| 亚洲日本电影在线| 色综合一区二区| 一区二区三区日韩精品视频| 一本色道综合亚洲| 一区二区三区四区高清精品免费观看 | 蜜臀久久99精品久久久久宅男| 91精品视频网| 日本视频在线一区| 日韩精品影音先锋| 另类小说欧美激情| 欧美精品一区二区精品网| 韩国中文字幕2020精品| 久久婷婷国产综合国色天香| 国产激情视频一区二区三区欧美| 久久综合网色—综合色88| 国产麻豆精品95视频| 国产精品视频九色porn| 成人av资源下载| 亚洲一区二区精品视频| 91精品欧美一区二区三区综合在| 日本午夜精品一区二区三区电影| 日韩一区二区麻豆国产| 国产高清久久久| 亚洲欧美偷拍另类a∨色屁股| 欧美性一二三区| 美女视频免费一区| 亚洲国产高清aⅴ视频| 欧美亚洲综合网| 日本aⅴ免费视频一区二区三区| 日韩欧美高清在线| av在线不卡免费看| 亚洲成人黄色小说| 欧美一区二区三区的|