本文整理汇总了C++中IO_ASSERT_NOT_SYMBOL函数的典型用法代码示例。如果您正苦于以下问题:C++ IO_ASSERT_NOT_SYMBOL函数的具体用法?C++ IO_ASSERT_NOT_SYMBOL怎么用?C++ IO_ASSERT_NOT_SYMBOL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了IO_ASSERT_NOT_SYMBOL函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: IO_METHOD
IO_METHOD(IoSeq, replaceFirstSeq)
{
/*doc Sequence replaceFirstSeq(aSequence, anotherSequence, optionalStartIndex)
Returns a new Sequence with the first occurance of aSequence
replaced with anotherSequence in the receiver. If optionalStartIndex is
provided, the search for aSequence begins at that index. Returns self.
*/
IoSeq *subSeq = IoMessage_locals_seqArgAt_(m, locals, 0);
IoSeq *otherSeq = IoMessage_locals_seqArgAt_(m, locals, 1);
size_t startIndex = 0;
if (IoMessage_argCount(m) > 2)
{
startIndex = IoMessage_locals_longArgAt_(m, locals, 2);
}
IO_ASSERT_NOT_SYMBOL(self);
{
UArray *a = DATA(self);
UArray *b = DATA(subSeq);
UArray *c = DATA(otherSeq);
long i = UArray_find_from_(a, b, startIndex);
if(i != -1)
{
UArray_removeRange(a, i, UArray_size(b));
UArray_at_putAll_(a, i, c);
}
}
return self;
}
开发者ID:Alessandroo,项目名称:io,代码行数:32,代码来源:IoSeq_mutable.c
示例2: IO_ASSERT_NOT_SYMBOL
IoObject *IoSeq_convertToFixedSizeType(IoSeq *self, IoObject *locals, IoMessage *m)
{
IO_ASSERT_NOT_SYMBOL(self);
UArray_convertToFixedSizeType(DATA(self));
IoObject_isDirty_(self, 1);
return self;
}
开发者ID:eklitzke,项目名称:io,代码行数:7,代码来源:IoSeq_mutable.c
示例3: IoMessage_locals_seqArgAt_
IoObject *IoSeq_clipBeforeEndOfSeq(IoSeq *self, IoObject *locals, IoMessage *m)
{
/*doc Sequence clipBeforeEndOfSeq(aSequence)
Removes the contents of the receiver before the end of
the first occurance of aSequence. Returns true if anything was
removed, or false otherwise.
*/
IoSeq *otherSeq = IoMessage_locals_seqArgAt_(m, locals, 0);
IO_ASSERT_NOT_SYMBOL(self);
UArray_clipBeforeEndOf_(DATA(self), DATA(otherSeq));
return self;
}
开发者ID:eklitzke,项目名称:io,代码行数:13,代码来源:IoSeq_mutable.c
注:本文中的IO_ASSERT_NOT_SYMBOL函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论