MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / character_offset

Method character_offset

eval/public/source_position.cc:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60int32_t SourcePosition::character_offset() const {
61 if (source_info_ == nullptr) {
62 return 0;
63 }
64 auto position_it = source_info_->positions().find(expr_id_);
65 return position_it != source_info_->positions().end() ? position_it->second
66 : 0;
67}
68
69} // namespace runtime
70} // namespace expr

Callers 1

TEST_FFunction · 0.80

Calls 1

endMethod · 0.45

Tested by 1

TEST_FFunction · 0.64