Lines Matching refs:immutable

185         static immutable string[8] result =
223 static immutable wstring[5] result =
248 static immutable dstring[3] result =
385 (isRandomAccessRange!S && is(immutable ElementType!S == immutable char)))
389 immutable c = str[index];
400 (isInputRange!S && is(immutable ElementType!S == immutable char)))
403 immutable c = str[0];
405 immutable c = str.front;
429 immutable randLen = refRandom.length;
444 immutable bidirLen = refBidir.length;
484 immutable char[] invalidStartBytes = [
498 (isRandomAccessRange!S && is(immutable ElementType!S == immutable wchar)))
502 immutable uint u = str[index];
515 if (isInputRange!S && is(immutable ElementType!S == immutable wchar) &&
519 immutable uint u = str.front;
539 immutable randLen = refRandom.length;
554 immutable bidirLen = refBidir.length;
594 (isInputRange!S && is(immutable ElementEncodingType!S == immutable dchar)))
629 immutable randLen = refRandom.length;
644 immutable bidirLen = refBidir.length;
686 immutable msbs = 7 - bsr((~uint(c)) & 0xFF);
718 (isRandomAccessRange!S && is(immutable ElementType!S == immutable char)))
749 (isRandomAccessRange!S && hasLength!S && is(immutable ElementType!S == immutable char)))
756 if (isBidirectionalRange!S && is(immutable ElementType!S == immutable char) && !isRandomAccessRange…
787 immutable randLen = refRandom.length;
802 immutable bidirLen = refBidir.length;
844 (isRandomAccessRange!S && is(immutable ElementType!S == immutable wchar)))
850 immutable c2 = str[index-1];
857 (isBidirectionalRange!S && is(immutable ElementType!S == immutable wchar)))
862 immutable c2 = str[$ - 1];
864 immutable c2 = str.back;
885 immutable randLen = refRandom.length;
900 immutable bidirLen = refBidir.length;
939 if (isRandomAccessRange!S && is(immutable ElementEncodingType!S == immutable dchar))
949 if (isBidirectionalRange!S && is(immutable ElementEncodingType!S == immutable dchar))
981 immutable randLen = refRandom.length;
996 immutable bidirLen = refBidir.length;
1044 static if (is(immutable C == immutable dchar))
1056 static if (is(immutable C == immutable char))
1091 static if (is(immutable C == immutable dchar))
1185 else static if (is(immutable S == immutable C[], C))
1258 immutable fst = str.front;
1274 immutable retval = decodeImpl!(canIndex, useReplacementDchar)(str, numCodeUnits);
1301 immutable retval = str[0];
1305 else static if (is(immutable S == immutable C[], C))
1307immutable retval = decodeImpl!(true, useReplacementDchar)(cast(const(C)[]) str, numCodeUnits);
1372 immutable retval = str[$ - 1];
1376 else static if (is(immutable S == immutable C[], C))
1379 immutable newLength = str.length - numCodeUnits;
1381 immutable retval = decodeImpl!(true, useReplacementDchar)(cast(const(C)[]) str, index);
1405 immutable retval = str.back;
1415 immutable retval = decodeImpl!(true, useReplacementDchar)(str, index);
1431 immutable retval = decodeImpl!(true, useReplacementDchar)(codePoint, index);
1476 static if (is(immutable ElementEncodingType!S == immutable char))
1478 else static if (is(immutable ElementEncodingType!S == immutable wchar))
1504 … is(S : const char[]) || (isInputRange!S && is(immutable ElementEncodingType!S == immutable char)))
1533 immutable length = str.length - index;
1736 if (is(S : const wchar[]) || (isInputRange!S && is(immutable ElementEncodingType!S == immutable wch…
1751 immutable length = str.length - index;
1777 immutable onlyOneCodeUnit = length == 1;
1779 immutable onlyOneCodeUnit = pstr.empty;
1793 immutable uint u2 = pstr[1];
1796 immutable uint u2 = pstr.front;
1854 if (is(S : const dchar[]) || (isInputRange!S && is(immutable ElementEncodingType!S == immutable dch…
1929 immutable lenBefore = range.length;
1934 immutable result = decode(range, index);
1958 immutable lenBefore = range.length;
1961 immutable result = decodeFront(range, numCodeUnits);
1989 immutable lenBefore = range.length;
1992 immutable result = decodeBack(range, numCodeUnits);
2026 immutable initialIndex = index;
2029 immutable lenBefore = range.length;
2059 immutable lenBefore = range.length;
3153 auto p3 = toUTFz!(immutable(char)*)("hello world");
3156 auto p6 = toUTFz!(immutable(dchar)*)("hello world"w);
3160 if (is(immutable typeof(*P.init) == typeof(str[0])))
3183 immutable p = trustedPtrAdd(str);
3203 if (is(typeof(str[0]) C) && is(immutable typeof(*P.init) == immutable C) && !is(C == immutable))
3212 (!is(const(Unqual!InChar) == InChar) && !is(immutable(Unqual!OutChar) == OutChar)))
3241 if (!is(immutable typeof(*P.init) == immutable typeof(str[0])))
3284 foreach (P; AliasSeq!(C*, const(C)*, immutable(C)*))
3302 immutable len = zeroLen(p);
3310 foreach (P; AliasSeq!(wchar*, const(wchar)*, immutable(wchar)*,
3311 dchar*, const(dchar)*, immutable(dchar)*))
3315 foreach (P; AliasSeq!( char*, const( char)*, immutable( char)*,
3316 dchar*, const(dchar)*, immutable(dchar)*))
3320 foreach (P; AliasSeq!( char*, const( char)*, immutable( char)*,
3321 wchar*, const(wchar)*, immutable(wchar)*))
3331 foreach (P; AliasSeq!( char*, const( char)*, immutable( char)*,
3332 wchar*, const(wchar)*, immutable(wchar)*,
3333 dchar*, const(dchar)*, immutable(dchar)*))
3657 static assert(is(ElementType!(typeof(r)) == immutable char));
3675 static assert(is(ElementType!(typeof(s)) == immutable char));
3807 static assert(is(ElementType!(typeof(bcu)) == immutable char));
3822 static assert(is(ElementType!(typeof(bcu)) == immutable wchar));
3836 static assert(is(ElementType!(typeof(bcu)) == immutable dchar));
3855 static assert(is(ElementType!(typeof(bcu)) == immutable char));
3973 static assert(is(ElementType!(typeof(bcu)) == immutable char));
3986 static assert(is(ElementType!(typeof(bcu)) == immutable wchar));
3995 static assert(is(ElementType!(typeof(bcu)) == immutable dchar));
4298 static if (is(immutable C == immutable UC, UC) && !is(C == UC))
4311 static if (is(immutable ElementEncodingType!R == immutable RC, RC) && is(RC == C))