Sha256: f012f385fed92323d1f706831f51bf34f9280a58ce22e33ea3aa868bb3144900
Contents?: true
Size: 781 Bytes
Versions: 13
Compression:
Stored size: 781 Bytes
Contents
/// @section StringLiteralRef record StringLiteralRef ( sizep : Pointer[SizeT], ); /// @section predicates overload ContiguousSequence?(#StringLiteralRef) : Bool = true; [s when StringLiteral?(s)] overload ContiguousSequence?(#Static[s]) : Bool = true; /// @section size, begin, end, index forceinline overload size(a:StringLiteralRef) = a.sizep^; forceinline overload begin(a:StringLiteralRef) : Pointer[Char] = Pointer[Char](a.sizep + 1); forceinline overload end(a:StringLiteralRef) = begin(a) + size(a); [I when Integer?(I)] forceinline overload index(a:StringLiteralRef, i:I) : ByRef[Char] { assert["boundsChecks"](i >= 0 and i < size(a), "StringLiteralRef index out of bounds"); return ref (begin(a) + i)^; } foo() = """ long\tlong story """
Version data entries
13 entries across 13 versions & 5 rubygems