Lines Matching refs:balloc
117 BlockAllocator balloc(4096, 4096);
120 util::to_base64(balloc, StringRef::from_lit("AAA--B_")));
122 util::to_base64(balloc, StringRef::from_lit("AAA--B_B")));
136 BlockAllocator balloc(4096, 4096);
138 util::percent_encode_token(balloc, StringRef::from_lit("h2")));
140 util::percent_encode_token(balloc, StringRef::from_lit("h3~")));
142 util::percent_encode_token(balloc, StringRef::from_lit("100%")));
144 util::percent_encode_token(balloc, StringRef::from_lit("http 2")));
160 BlockAllocator balloc(1024, 1024);
163 balloc, StringRef::from_lit("%66%6F%6f%62%61%72")));
166 util::percent_decode(balloc, StringRef::from_lit("%66%6")));
168 CU_ASSERT("f%" == util::percent_decode(balloc, StringRef::from_lit("%66%")));
172 BlockAllocator balloc(4096, 4096);
174 util::quote_string(balloc, StringRef::from_lit("alpha")));
175 CU_ASSERT("" == util::quote_string(balloc, StringRef::from_lit("")));
177 util::quote_string(balloc, StringRef::from_lit("\"alpha\"")));
268 BlockAllocator balloc(1024, 1024);
270 CU_ASSERT("0" == util::make_string_ref_uint(balloc, 0));
271 CU_ASSERT("123" == util::make_string_ref_uint(balloc, 123));
273 util::make_string_ref_uint(balloc, 18446744073709551615ULL));
530 BlockAllocator balloc(4096, 4096);
533 balloc, StringRef::from_lit("localhost"), 80));
535 util::make_http_hostport(balloc, StringRef::from_lit("::1"), 443));
538 util::make_http_hostport(balloc, StringRef::from_lit("localhost"), 3000));
550 BlockAllocator balloc(4096, 4096);
552 util::make_hostport(balloc, StringRef::from_lit("localhost"), 80));
554 util::make_hostport(balloc, StringRef::from_lit("::1"), 443));
592 BlockAllocator balloc(4096, 4096);
595 util::format_hex(balloc, StringRef::from_lit("\x0f\xf0")));
596 CU_ASSERT("" == util::format_hex(balloc, StringRef::from_lit("")));
608 BlockAllocator balloc(4096, 4096);
611 util::decode_hex(balloc, StringRef::from_lit("0ff0")));
612 CU_ASSERT("" == util::decode_hex(balloc, StringRef{}));
698 BlockAllocator balloc(4096, 4096);
700 CU_ASSERT("alpha" == util::rstrip(balloc, StringRef::from_lit("alpha")));
701 CU_ASSERT("alpha" == util::rstrip(balloc, StringRef::from_lit("alpha ")));
702 CU_ASSERT("alpha" == util::rstrip(balloc, StringRef::from_lit("alpha \t")));
703 CU_ASSERT("" == util::rstrip(balloc, StringRef::from_lit("")));
704 CU_ASSERT("" == util::rstrip(balloc, StringRef::from_lit("\t\t\t ")));