| 553 | |
| 554 | |
| 555 | CHARSET_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 | |
| 585 | int INTL_compare(thread_db* tdbb, const dsc* pText1, const dsc* pText2, ErrorFunction err) |
no test coverage detected