MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / INTL_charset

Function INTL_charset

src/jrd/intl.cpp:555–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553
554
555CHARSET_ID INTL_charset(thread_db* tdbb, USHORT ttype)
556{
557/**************************************
558 *
559 * I N T L _ c h a r s e t
560 *
561 **************************************
562 *
563 * Functional description
564 * Return the character set ID for a piece of text.
565 *
566 **************************************/
567
568 switch (ttype)
569 {
570 case ttype_none:
571 return (CS_NONE);
572 case ttype_ascii:
573 return (CS_ASCII);
574 case ttype_binary:
575 return (CS_BINARY);
576 case ttype_dynamic:
577 SET_TDBB(tdbb);
578 return (tdbb->getCharSet());
579 default:
580 return (TTYPE_TO_CHARSET(ttype));
581 }
582}
583
584
585int INTL_compare(thread_db* tdbb, const dsc* pText1, const dsc* pText2, ErrorFunction err)

Callers 8

INTL_compareFunction · 0.85
INTL_convert_bytesFunction · 0.85
INTL_convert_stringFunction · 0.85
INTL_pad_spacesFunction · 0.85
transliterateMethod · 0.85
getChidMethod · 0.85
CVT2_compareFunction · 0.85
CVT2_make_string2Function · 0.85

Calls 2

SET_TDBBFunction · 0.85
getCharSetMethod · 0.45

Tested by

no test coverage detected