MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / parse_axis_name

Method parse_axis_name

src/pugiXML/pugixml.cpp:8901–8967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8899 }
8900
8901 axis_t parse_axis_name(const xpath_lexer_string& name, bool& specified)
8902 {
8903 specified = true;
8904
8905 switch (name.begin[0])
8906 {
8907 case 'a':
8908 if (name == PUGIXML_TEXT("ancestor"))
8909 return axis_ancestor;
8910 else if (name == PUGIXML_TEXT("ancestor-or-self"))
8911 return axis_ancestor_or_self;
8912 else if (name == PUGIXML_TEXT("attribute"))
8913 return axis_attribute;
8914
8915 break;
8916
8917 case 'c':
8918 if (name == PUGIXML_TEXT("child"))
8919 return axis_child;
8920
8921 break;
8922
8923 case 'd':
8924 if (name == PUGIXML_TEXT("descendant"))
8925 return axis_descendant;
8926 else if (name == PUGIXML_TEXT("descendant-or-self"))
8927 return axis_descendant_or_self;
8928
8929 break;
8930
8931 case 'f':
8932 if (name == PUGIXML_TEXT("following"))
8933 return axis_following;
8934 else if (name == PUGIXML_TEXT("following-sibling"))
8935 return axis_following_sibling;
8936
8937 break;
8938
8939 case 'n':
8940 if (name == PUGIXML_TEXT("namespace"))
8941 return axis_namespace;
8942
8943 break;
8944
8945 case 'p':
8946 if (name == PUGIXML_TEXT("parent"))
8947 return axis_parent;
8948 else if (name == PUGIXML_TEXT("preceding"))
8949 return axis_preceding;
8950 else if (name == PUGIXML_TEXT("preceding-sibling"))
8951 return axis_preceding_sibling;
8952
8953 break;
8954
8955 case 's':
8956 if (name == PUGIXML_TEXT("self"))
8957 return axis_self;
8958

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected