本文整理汇总了C++中LBI函数的典型用法代码示例。如果您正苦于以下问题:C++ LBI函数的具体用法?C++ LBI怎么用?C++ LBI使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了LBI函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LBI
void FRichTextMarkupProcessing::CalculateLineRanges(const FString& Input, TArray<FTextRange>& LineRanges) const
{
// Iterate over each line break candidate, adding ranges from after the end of the last line added to before the newline or end of string.
FLineBreakIterator LBI(Input);
int32 RangeBegin = LBI.GetCurrentPosition();
for(;;)
{
const int32 BreakIndex = LBI.MoveToNext();
// If beginning or potential end is invalid, cease.
if(RangeBegin == INDEX_NONE || BreakIndex == INDEX_NONE)
{
break;
}
const int32 BreakingCharacterIndex = BreakIndex - 1;
if(BreakingCharacterIndex >= RangeBegin) // Valid index check.
{
const TCHAR BreakingCharacter = Input[BreakingCharacterIndex];
// If line break candidate is after a newline, add the range as a new line.
if(FChar::IsLinebreak(BreakingCharacter))
{
LineRanges.Emplace( FTextRange(RangeBegin, BreakingCharacterIndex) );
}
// If the line break candidate is the end of the string, add the range as a new line.
else if(BreakIndex == Input.Len())
{
LineRanges.Emplace( FTextRange(RangeBegin, BreakIndex) );
}
else
{
continue;
}
RangeBegin = BreakIndex; // The next line begins after the end of the current line.
}
}
}
示例2: lbi2_2
INLINE void lbi2_2(void) { LBI(2,2); }
示例3: lbi3_14
INLINE void lbi3_14(void) { LBI(3,14); }
示例4: lbi3_12
INLINE void lbi3_12(void) { LBI(3,12); }
示例5: lbi3_10
INLINE void lbi3_10(void) { LBI(3,10); }
示例6: lbi3_8
INLINE void lbi3_8(void) { LBI(3,8); }
示例7: lbi3_6
INLINE void lbi3_6(void) { LBI(3,6); }
示例8: lbi3_4
INLINE void lbi3_4(void) { LBI(3,4); }
示例9: lbi2_9
INLINE void lbi2_9(void) { LBI(2,9); }
示例10: lbi2_8
INLINE void lbi2_8(void) { LBI(2,8); }
示例11: lbi2_7
INLINE void lbi2_7(void) { LBI(2,7); }
示例12: lbi2_6
INLINE void lbi2_6(void) { LBI(2,6); }
示例13: lbi2_5
INLINE void lbi2_5(void) { LBI(2,5); }
示例14: lbi2_4
INLINE void lbi2_4(void) { LBI(2,4); }
示例15: lbi2_3
INLINE void lbi2_3(void) { LBI(2,3); }