ByteOffsetOfNthLine 69 tools/gn/command_args.cc Tokenizer::ByteOffsetOfNthLine(data, location.line_number()); ByteOffsetOfNthLine 19 tools/gn/err.cc size_t line_off = Tokenizer::ByteOffsetOfNthLine(data, n); ByteOffsetOfNthLine 28 tools/gn/tokenizer.h static size_t ByteOffsetOfNthLine(const base::StringPiece& buf, int n); ByteOffsetOfNthLine 149 tools/gn/tokenizer_unittest.cc TEST(Tokenizer, ByteOffsetOfNthLine) { ByteOffsetOfNthLine 150 tools/gn/tokenizer_unittest.cc EXPECT_EQ(0u, Tokenizer::ByteOffsetOfNthLine("foo", 1)); ByteOffsetOfNthLine 155 tools/gn/tokenizer_unittest.cc EXPECT_EQ('x', input1[Tokenizer::ByteOffsetOfNthLine(input1, 2)]); ByteOffsetOfNthLine 156 tools/gn/tokenizer_unittest.cc EXPECT_EQ('y', input1[Tokenizer::ByteOffsetOfNthLine(input1, 4)]); ByteOffsetOfNthLine 162 tools/gn/tokenizer_unittest.cc EXPECT_EQ(0u, Tokenizer::ByteOffsetOfNthLine(input2, 1)); ByteOffsetOfNthLine 163 tools/gn/tokenizer_unittest.cc EXPECT_EQ(2u, Tokenizer::ByteOffsetOfNthLine(input2, 2));