本文整理汇总了C++中MetaName::length方法的典型用法代码示例。如果您正苦于以下问题:C++ MetaName::length方法的具体用法?C++ MetaName::length怎么用?C++ MetaName::length使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MetaName
的用法示例。
在下文中一共展示了MetaName::length方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MetaName
MetaName Jrd::Attachment::nameToUserCharSet(thread_db* tdbb, const MetaName& name)
{
if (att_charset == CS_METADATA || att_charset == CS_NONE)
return name;
UCHAR buffer[MAX_SQL_IDENTIFIER_SIZE];
ULONG len = INTL_convert_bytes(tdbb, att_charset, buffer, MAX_SQL_IDENTIFIER_LEN,
CS_METADATA, (const BYTE*) name.c_str(), name.length(), ERR_post);
buffer[len] = '\0';
return MetaName((const char*) buffer);
}
示例2: PAR_dependency
void PAR_dependency(thread_db* tdbb, CompilerScratch* csb, StreamType stream, SSHORT id,
const MetaName& field_name)
{
/**************************************
*
* P A R _ d e p e n d e n c y
*
**************************************
*
* Functional description
* Register a field, relation, procedure or exception reference
* as a dependency.
*
**************************************/
SET_TDBB(tdbb);
CompilerScratch::Dependency dependency(0);
if (csb->csb_rpt[stream].csb_relation)
{
dependency.relation = csb->csb_rpt[stream].csb_relation;
// How do I determine reliably this is a view?
// At this time, rel_view_rse is still null.
//if (is_view)
// dependency.objType = obj_view;
//else
dependency.objType = obj_relation;
}
else if (csb->csb_rpt[stream].csb_procedure)
{
if (csb->csb_rpt[stream].csb_procedure->isSubRoutine())
return;
dependency.procedure = csb->csb_rpt[stream].csb_procedure;
dependency.objType = obj_procedure;
}
if (field_name.length() > 0)
dependency.subName = FB_NEW_POOL(*tdbb->getDefaultPool()) MetaName(*tdbb->getDefaultPool(), field_name);
else if (id >= 0)
dependency.subNumber = id;
csb->csb_dependencies.push(dependency);
}