当前位置: 首页>>代码示例>>C++>>正文


C++ duplicateStringValue函数代码示例

本文整理汇总了C++中duplicateStringValue函数的典型用法代码示例。如果您正苦于以下问题:C++ duplicateStringValue函数的具体用法?C++ duplicateStringValue怎么用?C++ duplicateStringValue使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了duplicateStringValue函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: cstr_

Value::CZString::CZString( const CZString &other )
: cstr_( other.index_ != noDuplication &&  other.cstr_ != 0
                ?  duplicateStringValue( other.cstr_ )
                : other.cstr_ )
   , index_( other.cstr_ ? (other.index_ == noDuplication ? noDuplication : duplicate)
                         : other.index_ )
{
}
开发者ID:jjiezheng,项目名称:game-platform-core-native,代码行数:8,代码来源:json_value.cpp

示例2: type_

Value::Value( const CppTL::ConstString &value )
   : type_( stringValue )
   , allocated_( true )
   , comments_( 0 )
# ifdef JSON_VALUE_USE_INTERNAL_MAP
   , itemIsUsed_( 0 )
#endif
{
   value_.string_ = duplicateStringValue( value, value.length() );
}
开发者ID:jjiezheng,项目名称:game-platform-core-native,代码行数:10,代码来源:json_value.cpp

示例3: releaseStringValue

void 
Value::CommentInfo::setComment( const char *text )
{
   if ( comment_ )
      releaseStringValue( comment_ );
   JSON_ASSERT( text );
   JSON_ASSERT_MESSAGE( text[0]=='\0' || text[0]=='/', "Comments must start with /");
   // It seems that /**/ style comments are acceptable as well.
   comment_ = duplicateStringValue( text );
}
开发者ID:jjiezheng,项目名称:game-platform-core-native,代码行数:10,代码来源:json_value.cpp

示例4: duplicateStringValue

Value::CZString::CZString(const CZString& other) {
  cstr_ = (other.storage_.policy_ != noDuplication && other.cstr_ != 0
				 ? duplicateStringValue(other.cstr_, other.storage_.length_)
				 : other.cstr_);
  storage_.policy_ = static_cast<unsigned>(other.cstr_
                 ? (static_cast<DuplicationPolicy>(other.storage_.policy_) == noDuplication
                     ? noDuplication : duplicate)
                 : static_cast<DuplicationPolicy>(other.storage_.policy_)) & 3U;
  storage_.length_ = other.storage_.length_;
}
开发者ID:4ib3r,项目名称:domoticz,代码行数:10,代码来源:json_value.cpp

示例5: releaseStringValue

void Value::CommentInfo::setComment(const char* text, size_t len) {
  if (comment_) {
    releaseStringValue(comment_, 0u);
    comment_ = 0;
  }
  JSON_ASSERT(text != 0);
  JSON_ASSERT_MESSAGE(
      text[0] == '\0' || text[0] == '/',
      "in Json::Value::setComment(): Comments must start with /");
  // It seems that /**/ style comments are acceptable as well.
  comment_ = duplicateStringValue(text, len);
}
开发者ID:4ib3r,项目名称:domoticz,代码行数:12,代码来源:json_value.cpp

示例6: duplicateStringValue

 char *makeMemberName(const char *memberName) const override { return duplicateStringValue(memberName); }
开发者ID:hroskes,项目名称:cmssw,代码行数:1,代码来源:json_value.cpp

示例7: duplicateStringValue

 virtual char *makeMemberName( const char *memberName )
 {
    return duplicateStringValue( memberName );
 }
开发者ID:FreyaTsao,项目名称:windows_leanplum_sdk,代码行数:4,代码来源:json_value.cpp


注:本文中的duplicateStringValue函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。