本文整理汇总了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;
}
示例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;
}
示例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;
}