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

Function INTL_pad_spaces

src/jrd/intl.cpp:1136–1157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1134
1135
1136void INTL_pad_spaces(thread_db* tdbb, DSC* type, UCHAR* string, ULONG length)
1137{
1138/**************************************
1139 *
1140 * I N T L _ p a d _ s p a c e s
1141 *
1142 **************************************
1143 *
1144 * Functional description
1145 * Pad a buffer with spaces, using the character
1146 * set's defined space character.
1147 *
1148 **************************************/
1149 SET_TDBB(tdbb);
1150
1151 fb_assert(type != NULL);
1152 fb_assert(IS_TEXT(type));
1153 fb_assert(string != NULL);
1154
1155 const USHORT charset = INTL_charset(tdbb, type->dsc_ttype());
1156 pad_spaces(tdbb, charset, string, length);
1157}
1158
1159
1160USHORT INTL_string_to_key(thread_db* tdbb,

Callers

nothing calls this directly

Calls 4

SET_TDBBFunction · 0.85
INTL_charsetFunction · 0.85
pad_spacesFunction · 0.85
dsc_ttypeMethod · 0.80

Tested by

no test coverage detected