gapic-generator/lib/gapic/schema/api.rb
# split the string on periods, but map backslash-escaped periods to
# literal periods.
split the string on periods, but map backslash-escaped periods to
literal periods.
split the string on periods but map backslash - escaped periods to literal periods .
def parse_key str
        str.scan(/\.|\\.|[^.\\]+/)
           .each_with_object([String.new]) do |tok, arr|
             if tok == "."
               arr.append String.new
             elsif tok.start_with? "\\"
               arr.last << tok[1]
             else
               arr.last << tok
             end
             arr
           end
      end
def parse_key str str . scan ( / \. | \\ .|[^. \\ ]+ / ) . each_with_object ( [ String . new ] ) do | tok , arr | if tok == "." arr . append String . new elsif tok . start_with? "\\" arr . last << tok [ 1 ] else arr . last << tok end arr end end
split the string on periods, but map backslash-escaped periods to
literal periods.
split the string on periods but map backslash - escaped periods to literal periods .
str
<not_specific>