Home
last modified time | relevance | path

Searched refs:csm (Results 1 – 25 of 27) sorted by relevance

12

/external/icu/icu4c/source/common/
Ducasemap.cpp42 UCaseMap *csm; in ucasemap_open() local
48 csm=(UCaseMap *)uprv_malloc(sizeof(UCaseMap)); in ucasemap_open()
49 if(csm==NULL) { in ucasemap_open()
52 uprv_memset(csm, 0, sizeof(UCaseMap)); in ucasemap_open()
54 csm->csp=ucase_getSingleton(); in ucasemap_open()
55 ucasemap_setLocale(csm, locale, pErrorCode); in ucasemap_open()
57 uprv_free(csm); in ucasemap_open()
61 csm->options=options; in ucasemap_open()
62 return csm; in ucasemap_open()
66 ucasemap_close(UCaseMap *csm) { in ucasemap_close() argument
[all …]
Dustr_titlecase_brkiter.cpp37 setTempCaseMap(UCaseMap *csm, const char *locale) { in setTempCaseMap() argument
38 if(csm->csp==NULL) { in setTempCaseMap()
39 csm->csp=ucase_getSingleton(); in setTempCaseMap()
42 csm->locale[0]=0; in setTempCaseMap()
44 ustrcase_setTempCaseMapLocale(csm, locale); in setTempCaseMap()
56 UCaseMap csm=UCASEMAP_INITIALIZER; in u_strToTitle() local
57 setTempCaseMap(&csm, locale); in u_strToTitle()
59 ubrk_setText(csm.iter=titleIter, src, srcLength, pErrorCode); in u_strToTitle()
61 csm.iter=ubrk_open(UBRK_WORD, csm.locale, src, srcLength, pErrorCode); in u_strToTitle()
64 &csm, in u_strToTitle()
[all …]
Dustrcase_locale.cpp26 ustrcase_setTempCaseMapLocale(UCaseMap *csm, const char *locale) { in ustrcase_setTempCaseMapLocale() argument
57 csm->locale[i]=c; in ustrcase_setTempCaseMapLocale()
60 csm->locale[i]=0; /* Up to 3 non-separator characters. */ in ustrcase_setTempCaseMapLocale()
62 csm->locale[0]=0; /* Longer-than-3 initial subtag: Ignore. */ in ustrcase_setTempCaseMapLocale()
71 setTempCaseMap(UCaseMap *csm, const char *locale) { in setTempCaseMap() argument
72 if(csm->csp==NULL) { in setTempCaseMap()
73 csm->csp=ucase_getSingleton(); in setTempCaseMap()
76 csm->locale[0]=0; in setTempCaseMap()
78 ustrcase_setTempCaseMapLocale(csm, locale); in setTempCaseMap()
89 UCaseMap csm=UCASEMAP_INITIALIZER; in u_strToLower() local
[all …]
Dunistr_titlecase_brkiter.cpp30 unistr_case_internalToTitle(const UCaseMap *csm, in unistr_case_internalToTitle() argument
34 ubrk_setText(csm->iter, src, srcLength, pErrorCode); in unistr_case_internalToTitle()
35 return ustrcase_internalToTitle(csm, dest, destCapacity, src, srcLength, pErrorCode); in unistr_case_internalToTitle()
43 setTempCaseMap(UCaseMap *csm, const char *locale) { in setTempCaseMap() argument
44 if(csm->csp==NULL) { in setTempCaseMap()
45 csm->csp=ucase_getSingleton(); in setTempCaseMap()
48 csm->locale[0]=0; in setTempCaseMap()
50 ustrcase_setTempCaseMapLocale(csm, locale); in setTempCaseMap()
68 UCaseMap csm=UCASEMAP_INITIALIZER; in toTitle() local
69 csm.options=options; in toTitle()
[all …]
Dunistr_case_locale.cpp35 setTempCaseMap(UCaseMap *csm, const char *locale) { in setTempCaseMap() argument
36 if(csm->csp==NULL) { in setTempCaseMap()
37 csm->csp=ucase_getSingleton(); in setTempCaseMap()
40 csm->locale[0]=0; in setTempCaseMap()
42 ustrcase_setTempCaseMapLocale(csm, locale); in setTempCaseMap()
53 UCaseMap csm=UCASEMAP_INITIALIZER; in toLower() local
54 setTempCaseMap(&csm, locale.getName()); in toLower()
55 return caseMap(&csm, ustrcase_internalToLower); in toLower()
65 UCaseMap csm=UCASEMAP_INITIALIZER; in toUpper() local
66 setTempCaseMap(&csm, locale.getName()); in toUpper()
[all …]
Ducasemap_titlecase_brkiter.cpp32 ucasemap_getBreakIterator(const UCaseMap *csm) { in ucasemap_getBreakIterator() argument
33 return csm->iter; in ucasemap_getBreakIterator()
37 ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode * /*pErrorCode*/) { in ucasemap_setBreakIterator() argument
39 delete reinterpret_cast<BreakIterator *>(csm->iter); in ucasemap_setBreakIterator()
40 csm->iter=iterToAdopt; in ucasemap_setBreakIterator()
44 ucasemap_utf8ToTitle(UCaseMap *csm, in ucasemap_utf8ToTitle() argument
53 if(csm->iter==NULL) { in ucasemap_utf8ToTitle()
54 csm->iter=ubrk_open(UBRK_WORD, csm->locale, in ucasemap_utf8ToTitle()
58 ubrk_setUText(csm->iter, &utext, pErrorCode); in ucasemap_utf8ToTitle()
59 int32_t length=ucasemap_mapUTF8(csm, in ucasemap_utf8ToTitle()
Dustrcase.cpp127 _caseMap(const UCaseMap *csm, UCaseMapFull *map, in _caseMap() argument
137 locCache=csm->locCache; in _caseMap()
146 c=map(csm->csp, c, utf16_caseContextIterator, csc, &s, csm->locale, &locCache); in _caseMap()
164 ustrcase_internalToTitle(const UCaseMap *csm, in ustrcase_internalToTitle() argument
179 BreakIterator *bi=reinterpret_cast<BreakIterator *>(csm->iter); in ustrcase_internalToTitle()
182 int32_t locCache=csm->locCache; in ustrcase_internalToTitle()
220 … if((csm->options&U_TITLECASE_NO_BREAK_ADJUSTMENT)==0 && UCASE_NONE==ucase_getType(csm->csp, c)) { in ustrcase_internalToTitle()
232 if(UCASE_NONE!=ucase_getType(csm->csp, c)) { in ustrcase_internalToTitle()
249 … c=ucase_toFullTitle(csm->csp, c, utf16_caseContextIterator, &csc, &s, csm->locale, &locCache); in ustrcase_internalToTitle()
254 ucase_getCaseLocale(csm->locale,&locCache) == UCASE_LOC_DUTCH && in ustrcase_internalToTitle()
[all …]
Dustr_imp.h128 ustrcase_setTempCaseMapLocale(UCaseMap *csm, const char *locale);
140 UStringCaseMapper(const UCaseMap *csm,
149 ustrcase_internalToLower(const UCaseMap *csm,
156 ustrcase_internalToUpper(const UCaseMap *csm,
165 ustrcase_internalToTitle(const UCaseMap *csm,
174 ustrcase_internalFold(const UCaseMap *csm,
184 ustrcase_map(const UCaseMap *csm,
198 UTF8CaseMapper(const UCaseMap *csm,
205 ucasemap_internalUTF8ToTitle(const UCaseMap *csm,
215 ucasemap_mapUTF8(const UCaseMap *csm,
Dunistr_case.cpp88 UnicodeString::caseMap(const UCaseMap *csm, in caseMap() argument
129 newLength = stringCaseMapper(csm, getArrayStart(), getCapacity(), in caseMap()
145 UCaseMap csm=UCASEMAP_INITIALIZER; in foldCase() local
146 csm.csp=ucase_getSingleton(); in foldCase()
147 csm.options=options; in foldCase()
148 return caseMap(&csm, ustrcase_internalFold); in foldCase()
Ducnv2022.cpp1762 uint16_t csm; in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC() local
1768 csm = jpCharsetMasks[converterData->version]; in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
1776 csm &= ~CSM(HWKANA_7BIT); in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
1780 csm &= ~CSM(cs); in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
1785 csm &= ~CSM(cs); in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
1791 if(CSM(cs) & csm) { in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
1793 csm &= ~CSM(cs); in UConverter_fromUnicode_ISO_2022_JP_OFFSETS_LOGIC()
/external/icu/icu4c/source/common/unicode/
Ducasemap.h78 ucasemap_close(UCaseMap *csm);
106 ucasemap_getLocale(const UCaseMap *csm);
115 ucasemap_getOptions(const UCaseMap *csm);
129 ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode);
143 ucasemap_setOptions(UCaseMap *csm, uint32_t options, UErrorCode *pErrorCode);
196 ucasemap_getBreakIterator(const UCaseMap *csm);
219 ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode *pErrorCode);
268 ucasemap_toTitle(UCaseMap *csm,
299 ucasemap_utf8ToLower(const UCaseMap *csm,
328 ucasemap_utf8ToUpper(const UCaseMap *csm,
[all …]
/external/libdrm/radeon/
Dradeon_cs.c10 radeon_cs_create(struct radeon_cs_manager *csm, uint32_t ndw) in radeon_cs_create() argument
12 struct radeon_cs_int *csi = csm->funcs->cs_create(csm, ndw); in radeon_cs_create()
23 return csi->csm->funcs->cs_write_reloc(csi, in radeon_cs_write_reloc()
35 return csi->csm->funcs->cs_begin(csi, ndw, file, func, line); in radeon_cs_begin()
43 return csi->csm->funcs->cs_end(csi, file, func, line); in radeon_cs_end()
49 return csi->csm->funcs->cs_emit(csi); in radeon_cs_emit()
55 return csi->csm->funcs->cs_destroy(csi); in radeon_cs_destroy()
61 return csi->csm->funcs->cs_erase(csi); in radeon_cs_erase()
67 return csi->csm->funcs->cs_need_flush(csi); in radeon_cs_need_flush()
73 csi->csm->funcs->cs_print(csi, file); in radeon_cs_print()
[all …]
Dradeon_cs_gem.c125 static struct radeon_cs_int *cs_gem_create(struct radeon_cs_manager *csm, in cs_gem_create() argument
138 csg->base.csm = csm; in cs_gem_create()
340 struct radeon_cs_manager_gem *csm; in cs_gem_dump_bof() local
345 csm = (struct radeon_cs_manager_gem *)cs->csm; in cs_gem_dump_bof()
350 device_id = bof_int32(csm->device_id); in cs_gem_dump_bof()
411 sprintf(tmp, "d-0x%04X-%08d.bof", csm->device_id, csm->nbof++); in cs_gem_dump_bof()
445 r = drmCommandWriteRead(cs->csm->fd, DRM_RADEON_CS, in cs_gem_emit()
455 cs->csm->read_used = 0; in cs_gem_emit()
456 cs->csm->vram_write_used = 0; in cs_gem_emit()
457 cs->csm->gart_write_used = 0; in cs_gem_emit()
[all …]
Dradeon_cs_space.c114 struct radeon_cs_manager *csm = cs->csm; in radeon_cs_do_space_check() local
144 if ((sizes.op_read + sizes.op_gart_write > csm->gart_limit) || in radeon_cs_do_space_check()
145 (sizes.op_vram_write > csm->vram_limit)) { in radeon_cs_do_space_check()
149 if (((csm->vram_write_used + sizes.op_vram_write) > csm->vram_limit) || in radeon_cs_do_space_check()
150 …((csm->read_used + csm->gart_write_used + sizes.op_gart_write + sizes.op_read) > csm->gart_limit))… in radeon_cs_do_space_check()
154 csm->gart_write_used += sizes.op_gart_write; in radeon_cs_do_space_check()
155 csm->vram_write_used += sizes.op_vram_write; in radeon_cs_do_space_check()
156 csm->read_used += sizes.op_read; in radeon_cs_do_space_check()
Dradeon_cs_int.h20 struct radeon_cs_manager *csm; member
36 struct radeon_cs_int *(*cs_create)(struct radeon_cs_manager *csm,
Dradeon_cs_gem.h39 void radeon_cs_manager_gem_dtor(struct radeon_cs_manager *csm);
Dradeon_cs.h65 extern struct radeon_cs *radeon_cs_create(struct radeon_cs_manager *csm,
/external/icu/icu4c/source/test/cintltst/
Dcstrcase.c729 UCaseMap *csm; in TestUCaseMap() local
736 csm=ucasemap_open("tur", 0xa5, &errorCode); in TestUCaseMap()
741 locale=ucasemap_getLocale(csm); in TestUCaseMap()
746 ucasemap_setLocale(csm, "I-kLInGOn-the-quick-brown-fox-jumps-over-the-lazy-dog", &errorCode); in TestUCaseMap()
747 locale=ucasemap_getLocale(csm); in TestUCaseMap()
753 options=ucasemap_getOptions(csm); in TestUCaseMap()
757 ucasemap_setOptions(csm, 0x333333, &errorCode); in TestUCaseMap()
758 options=ucasemap_getOptions(csm); in TestUCaseMap()
767 length=ucasemap_utf8ToLower(csm, utf8Out, (int32_t)sizeof(utf8Out), aBc, -1, &errorCode); in TestUCaseMap()
775 length=ucasemap_utf8ToLower(csm, utf8Out, (int32_t)sizeof(utf8Out), aBc, -1, &errorCode); in TestUCaseMap()
[all …]
/external/icu/icu4c/source/samples/csdet/
Dcsdet.c31 const UCharsetMatch **csm; in main() local
54 csm = ucsdet_detectAll(csd, &matchCount, &status); in main()
57 const char *name = ucsdet_getName(csm[match], &status); in main()
58 const char *lang = ucsdet_getLanguage(csm[match], &status); in main()
59 int32_t confidence = ucsdet_getConfidence(csm[match], &status); in main()
/external/icu/icu4c/source/test/intltest/
Dstrcase.cpp395 LocalUCaseMapPointer csm(ucasemap_open(localeID, options, errorCode)); in TestCasingImpl() local
400 ucasemap_setBreakIterator(csm.getAlias(), clone, errorCode); in TestCasingImpl()
408 utf8OutLength=ucasemap_utf8ToLower(csm.getAlias(), in TestCasingImpl()
414 utf8OutLength=ucasemap_utf8ToUpper(csm.getAlias(), in TestCasingImpl()
421 utf8OutLength=ucasemap_utf8ToTitle(csm.getAlias(), in TestCasingImpl()
428 utf8OutLength=ucasemap_utf8FoldCase(csm.getAlias(), in TestCasingImpl()
/external/eigen/bench/
Dspmv.cpp120 cs *csm; in main() local
121 eiToCSparse(sm, csm); in main()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_common.c743 rmesa->cmdbuf.csm = in rcommonInitCmdBuf()
745 if (rmesa->cmdbuf.csm == NULL) { in rcommonInitCmdBuf()
749 rmesa->cmdbuf.cs = radeon_cs_create(rmesa->cmdbuf.csm, size); in rcommonInitCmdBuf()
772 radeon_cs_manager_gem_dtor(rmesa->cmdbuf.csm); in rcommonDestroyCmdBuf()
Dradeon_common_context.h380 struct radeon_cs_manager *csm; member
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_common.c743 rmesa->cmdbuf.csm = in rcommonInitCmdBuf()
745 if (rmesa->cmdbuf.csm == NULL) { in rcommonInitCmdBuf()
749 rmesa->cmdbuf.cs = radeon_cs_create(rmesa->cmdbuf.csm, size); in rcommonInitCmdBuf()
772 radeon_cs_manager_gem_dtor(rmesa->cmdbuf.csm); in rcommonDestroyCmdBuf()
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetISO2022.java1804 char csm; in encodeLoop() local
1809 csm = (char)jpCharsetMasks[myConverterData.version]; in encodeLoop()
1817 csm &= ~CSM(HWKANA_7BIT); in encodeLoop()
1821 csm &= ~CSM(cs); in encodeLoop()
1826 csm &= ~CSM(cs); in encodeLoop()
1832 if ((CSM(cs) & csm) != 0) { in encodeLoop()
1834 csm &= ~CSM(cs); in encodeLoop()

12