MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlIsAbsolutePath

Function xmlIsAbsolutePath

ThirdParty/libxml2/vtklibxml2/uri.c:1872–1887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1870 ************************************************************************/
1871
1872static int
1873xmlIsAbsolutePath(const xmlChar *path) {
1874 int c = path[0];
1875
1876 if (xmlIsPathSeparator(c, 1))
1877 return(1);
1878
1879#if defined(_WIN32) || defined(__CYGWIN__)
1880 if ((((c >= 'A') && (c <= 'Z')) ||
1881 ((c >= 'a') && (c <= 'z'))) &&
1882 (path[1] == ':'))
1883 return(1);
1884#endif
1885
1886 return(0);
1887}
1888
1889/**
1890 * xmlResolvePath:

Callers 2

xmlResolvePathFunction · 0.85
xmlParseUriOrPathFunction · 0.85

Calls 1

xmlIsPathSeparatorFunction · 0.85

Tested by

no test coverage detected