Lines Matching refs:p2
35 int cmp_lpi_with_psb(const void *p1, const void *p2) {
37 (static_cast<const LmaPsbItem*>(p2))->psb)
40 (static_cast<const LmaPsbItem*>(p2))->psb)
45 int cmp_lpi_with_unified_psb(const void *p1, const void *p2) {
47 const LmaPsbItem *item2 = static_cast<const LmaPsbItem*>(p2);
63 int cmp_lpi_with_id(const void *p1, const void *p2) {
65 (static_cast<const LmaPsbItem*>(p2))->id)
68 (static_cast<const LmaPsbItem*>(p2))->id)
73 int cmp_lpi_with_hanzi(const void *p1, const void *p2) {
75 (static_cast<const LmaPsbItem*>(p2))->hanzi)
78 (static_cast<const LmaPsbItem*>(p2))->hanzi)
84 int cmp_lpsi_with_str(const void *p1, const void *p2) {
86 (static_cast<const LmaPsbStrItem*>(p2))->str);
90 int cmp_hanzis_1(const void *p1, const void *p2) {
92 *static_cast<const char16*>(p2))
96 *static_cast<const char16*>(p2))
101 int cmp_hanzis_2(const void *p1, const void *p2) {
103 static_cast<const char16*>(p2), 2);
106 int cmp_hanzis_3(const void *p1, const void *p2) {
108 static_cast<const char16*>(p2), 3);
111 int cmp_hanzis_4(const void *p1, const void *p2) {
113 static_cast<const char16*>(p2), 4);
116 int cmp_hanzis_5(const void *p1, const void *p2) {
118 static_cast<const char16*>(p2), 5);
121 int cmp_hanzis_6(const void *p1, const void *p2) {
123 static_cast<const char16*>(p2), 6);
126 int cmp_hanzis_7(const void *p1, const void *p2) {
128 static_cast<const char16*>(p2), 7);
131 int cmp_hanzis_8(const void *p1, const void *p2) {
133 static_cast<const char16*>(p2), 8);
136 int cmp_npre_by_score(const void *p1, const void *p2) {
138 (static_cast<const NPredictItem*>(p2))->psb)
142 (static_cast<const NPredictItem*>(p2))->psb)
148 int cmp_npre_by_hislen_score(const void *p1, const void *p2) {
150 (static_cast<const NPredictItem*>(p2))->his_len)
154 (static_cast<const NPredictItem*>(p2))->his_len)
158 (static_cast<const NPredictItem*>(p2))->psb)
162 (static_cast<const NPredictItem*>(p2))->psb)
168 int cmp_npre_by_hanzi_score(const void *p1, const void *p2) {
170 (static_cast<const NPredictItem*>(p2))->pre_hzs, kMaxPredictSize));
175 (static_cast<const NPredictItem*>(p2))->psb)
179 (static_cast<const NPredictItem*>(p2))->psb)