萎靡什么意思| 霸天虎和威震天是什么关系| 什么是变异性哮喘| 肠系膜淋巴结炎吃什么药最有效| 手容易出汗是什么原因| 嗓子哑是什么原因| 幽门杆菌有什么症状| 舒筋健腰丸为什么这么贵| 豆包是什么| 肾阳虚是什么意思| 泛性恋是什么| 主见是什么意思| 肺部磨玻璃结节需要注意什么| 声带小结是什么意思| 什么的溪流| 机械键盘什么轴最好| 益生元是什么| 急火攻心是什么生肖| 斐乐什么档次| 甲沟炎涂抹什么药膏最有效| 货值是什么意思| aigner是什么牌子| 胸导联低电压什么意思| 摩拳擦掌是什么意思| 阴虚吃什么食物| 什么人容易心梗| 饣与什么有关| 什么是生理盐水| 傍晚是什么时辰| 一个草字头一个氏念什么| vj是什么| 什么的脊背| 苹果五行属什么| 马六甲板材是什么木材| hs医学上是什么意思| 什么叫体位性低血压| 什么叫私人会所| 双鱼座的幸运色是什么| 什么是保健品| 什么食物含有维生素b| 多汗症是什么原因| 大智若愚什么意思| 撕票是什么意思| 尿潴留是什么原因引起的| 生意兴隆是什么生肖| 高密度灶是什么意思| 你是我的唯一什么意思| 弘字五行属什么| 观音菩萨代表什么生肖| 晚上很难入睡是什么原因| 什么叫肾功能不全| 党工委书记是什么级别| 肠粉是什么| cp是什么| 白带是黄色是什么原因| 月经推迟不来什么原因| 老是瞌睡是什么原因| 股骨头坏死挂什么科| 巴适是什么意思| 辩解是什么意思| 卫校学什么专业最好| 今天属什么生肖老黄历| 骶椎腰化什么意思| 茉莉什么时候开花| 男人的精子对女人有什么好处| 明目退翳什么意思| 嗓子吞咽疼痛吃什么药| 一个齿一个禹念什么| 什么山峻岭| 雨云是什么字| lac是什么意思| 秀才相当于什么学历| 乙肝前s1抗原阳性是什么意思| 每天放很多屁是什么原因| 减肥吃什么水果好| 孩子喝什么牛奶有助于长高| 2月6号是什么星座| 余情未了什么意思| 95年属什么生肖婚配表| 女人吃什么养肝排毒| 附件炎吃什么药效果好| 发烧是什么原因| 扁桃体肿大是什么原因引起的| 小猫咪吃什么| 钝是什么意思| 身体逐渐消瘦是什么原因| 211是什么| 什么茶刮油| 车牌号选什么数字吉利| 汕头市花是什么花| 宁字五行属什么的| 乘胜追击什么意思| 二氧化钛是什么东西| 海带绿豆汤有什么功效| 长血痣是什么原因| 壁虎是什么类动物| 胆小怕事是什么生肖| 心肌炎吃什么药效果好| 苦瓜为什么是苦的| 蛇酒不是三十九开什么| 眼压高是什么原因引起的| 梦见一条小蛇是什么意思| 冰箱买什么牌子好| champion什么意思| 鼻尖疼是什么原因| 腺苷脱氨酶高什么意思| 乳腺癌吃什么水果好| ts是什么品牌| 打嗝什么原因| 毕业送老师什么礼物好| 木鱼是什么意思| 什么是邪教| 火气重喝什么茶| 白热化阶段是什么意思| 梦见老婆出轨是什么预兆| 女生食指戴戒指什么意思| 嫦娥住的宫殿叫什么| 什么的小河| 蛀牙是什么原因引起的| 避孕套有什么危害| 尿碱是什么| 今天是什么生肖| crocs什么意思| 鸡蛋和面粉可以做什么好吃的| 挖苦是什么意思| 割掉胆对人有什么影响| 吕洞宾代表什么生肖| 10.30什么星座| 金银花什么时候开花| 尿血应该挂什么科| 吃什么消除肺部结节| eob是什么意思| 中的五行属性是什么| 为什么十五的月亮十六圆| 三尖瓣关闭不全是什么意思| 尿道炎看什么科室好| 舌头边缘有齿痕是什么原因| 均为是什么意思| 汪字五行属什么| offer是什么意思| approval是什么意思| 鸟飞到头上什么预兆| 疝气长在什么位置图片| 排卵期同房要注意什么| 皮肤溃烂用什么药治愈最快| maby什么意思| 6.14什么星座| 蚰蜒吃什么| 叶子发黄是什么原因| 甲状腺适合吃什么食物| 小透明是什么意思| 鸡蛋与什么食物相克| 素数是什么| 赭色是什么颜色| 宫闱是什么意思| 隔空打牛是什么意思| 中耳炎去药店买什么药| 七月份有什么水果| 膀胱炎看什么科| 福祉是什么意思| 晚上睡觉多梦是什么原因| 天秤女和什么座最配对| 年糕是什么做的| 乔峰和洪七公什么关系| 来龙去脉指什么生肖| 眼黄瘤什么方法治疗最好| 头部出汗多是什么原因| 女人八卦是什么意思| 巳蛇五行属什么| 公子是你吗是什么歌| 花椒泡脚有什么好处| 夏天脚底出汗是什么原因| 肺结节是一种什么病| 什么人不能喝丹参| 阴阳数字是什么数| 东北和山东有什么区别| exo什么时候出道的| 死亡是什么感觉| 大疱病是什么病| 办健康证需要带什么| 为什么相爱的人却不能在一起| 包头古代叫什么| 保胎吃什么药| 狗狗拉血是什么原因| 为什么大拇指只有两节| 毛豆有什么营养价值| 性格内向的人适合做什么工作| 禄位是什么意思| 农历2月份是什么星座| model是什么意思| 谷草转氨酶是指什么| 梦见煤是什么意思| 弥可保是什么药| 脾胃虚弱吃什么食物补| 两特两重指的是什么| 体重除以身高的平方是什么指数| 68年属什么生肖多少岁| 英短蓝猫吃什么猫粮好| 四川人为什么喜欢吃辣| 秋田狐鱼钩适合钓什么鱼| 反流性咽喉炎吃什么药| 额头容易出汗是什么原因| 迎春花像什么| 感冒喝什么汤| 到此为止是什么意思| 鼠加句念什么| 灰指甲挂号挂什么科| 搬家有什么讲究和忌讳| 阿奇霉素主治什么| 洛阳白马寺求什么最灵| 姐姐的儿子叫什么| 日本豆腐是用什么做的| 补气吃什么| 小沙弥是什么意思| 分娩是什么意思啊| 四眼狗是什么品种| 一字马是什么意思| 红烧肉可以放什么配菜| 怎么判断脸上是什么斑| 游离是什么意思| 胃息肉吃什么好| 吃什么对头发好| 白介素高说明什么| 攥是什么意思| o型rhd阳性是什么意思| 什么是药学| 生殖激素常规检查是查什么的| 哮喘吃什么食物好| 多出汗是什么原因| 什么虫子咬了会起水泡| vera是什么意思| 血小板高是什么问题| spa是什么服务| 高尿酸血症是什么病| 男人胡子长得快是什么原因| 叫姑姑是什么关系| 借什么可以不还| yeezy是什么牌子| 肾虚是什么原因造成的| 小猫的胡须有什么作用| 已故是什么意思| 男属鼠的和什么属相最配| 脸上脂溢性皮炎用什么药| 睾丸隐痛什么原因| 疱疹是什么病| 补办身份证要带什么| 秋天有什么景物| wtf什么意思| 发低烧吃什么药| 厄警失痣是什么意思| chloe什么牌子| 鸡奸什么意思| 岳飞属什么生肖| 化妆品属于什么行业| 酱油什么时候发明的| 火乐念什么| 胃寒胃凉吃什么药| 脂肪肝浸润是什么意思| 吃什么食物增加黑色素| moco是什么牌子| 两点水的字和什么有关| 四月份是什么季节| 结婚的礼数都有什么| 肠胃感冒吃什么药| 百度
Small. Fast. Reliable.
Choose any three.

SQLite C Interface

Define New Collating Sequences

int sqlite3_create_collation(
  sqlite3*,
  const char *zName,
  int eTextRep,
  void *pArg,
  int(*xCompare)(void*,int,const void*,int,const void*)
);
int sqlite3_create_collation_v2(
  sqlite3*,
  const char *zName,
  int eTextRep,
  void *pArg,
  int(*xCompare)(void*,int,const void*,int,const void*),
  void(*xDestroy)(void*)
);
int sqlite3_create_collation16(
  sqlite3*,
  const void *zName,
  int eTextRep,
  void *pArg,
  int(*xCompare)(void*,int,const void*,int,const void*)
);

These functions add, remove, or modify a collation associated with the database connection specified as the first argument.

The name of the collation is a UTF-8 string for sqlite3_create_collation() and sqlite3_create_collation_v2() and a UTF-16 string in native byte order for sqlite3_create_collation16(). Collation names that compare equal according to sqlite3_strnicmp() are considered to be the same name.

The third argument (eTextRep) must be one of the constants:

The eTextRep argument determines the encoding of strings passed to the collating function callback, xCompare. The SQLITE_UTF16 and SQLITE_UTF16_ALIGNED values for eTextRep force strings to be UTF16 with native byte order. The SQLITE_UTF16_ALIGNED value for eTextRep forces strings to begin on an even byte address.

The fourth argument, pArg, is an application data pointer that is passed through as the first argument to the collating function callback.

The fifth argument, xCompare, is a pointer to the collating function. Multiple collating functions can be registered using the same name but with different eTextRep parameters and SQLite will use whichever function requires the least amount of data transformation. If the xCompare argument is NULL then the collating function is deleted. When all collating functions having the same name are deleted, that collation is no longer usable.

The collating function callback is invoked with a copy of the pArg application data pointer and with two strings in the encoding specified by the eTextRep argument. The two integer parameters to the collating function callback are the length of the two strings, in bytes. The collating function must return an integer that is negative, zero, or positive if the first string is less than, equal to, or greater than the second, respectively. A collating function must always return the same answer given the same inputs. If two or more collating functions are registered to the same collation name (using different eTextRep values) then all must give an equivalent answer when invoked with equivalent strings. The collating function must obey the following properties for all strings A, B, and C:

  1. If A==B then B==A.
  2. If A==B and B==C then A==C.
  3. If A<B THEN B>A.
  4. If A<B and B<C then A<C.

If a collating function fails any of the above constraints and that collating function is registered and used, then the behavior of SQLite is undefined.

The sqlite3_create_collation_v2() works like sqlite3_create_collation() with the addition that the xDestroy callback is invoked on pArg when the collating function is deleted. Collating functions are deleted when they are overridden by later calls to the collation creation functions or when the database connection is closed using sqlite3_close().

The xDestroy callback is not called if the sqlite3_create_collation_v2() function fails. Applications that invoke sqlite3_create_collation_v2() with a non-NULL xDestroy argument should check the return code and dispose of the application data pointer themselves rather than expecting SQLite to deal with it for them. This is different from every other SQLite interface. The inconsistency is unfortunate but cannot be changed without breaking backwards compatibility.

See also: sqlite3_collation_needed() and sqlite3_collation_needed16().

See also lists of Objects, Constants, and Functions.

百度