示例#1
0
 public static string GetRelativePath(string ancestorPath, string descendantPath)
 {
     return(SegmentHelper.GetRelativeStr(PathConsts.PathSeparator, ancestorPath, descendantPath));
 }
示例#2
0
 public static int GetDepth(string path)
 {
     return(SegmentHelper.GetDepth(PathConsts.PathSeparator, path));
 }
示例#3
0
 public static string GetDescendantsPattern(string path)
 {
     return(SegmentHelper.GetDescendantsPattern(PathConsts.PathSeparator, path));
 }
示例#4
0
 public static string GetChildrenPattern(string path)
 {
     return(SegmentHelper.GetChildrenPattern(PathConsts.PathSeparator, path));
 }
示例#5
0
 public static string GetParentPath(string path)
 {
     return(SegmentHelper.GetParentStr(PathConsts.PathSeparator, path));
 }
示例#6
0
 public static string GetDescendantPath(string path, string relativePath)
 {
     return(SegmentHelper.GetDescendantStr(PathConsts.PathSeparator, path, relativePath));
 }
示例#7
0
 public static string GetRelativeKey(string ancestorKey, string descendantKey)
 {
     return(SegmentHelper.GetRelativeStr(DictConsts.KeySeparator, ancestorKey, descendantKey));
 }
示例#8
0
 public static int GetDepth(string key)
 {
     return(SegmentHelper.GetDepth(DictConsts.KeySeparator, key));
 }
示例#9
0
 public static string GetChildrenPattern(string key)
 {
     return(SegmentHelper.GetChildrenPattern(DictConsts.KeySeparator, key));
 }
示例#10
0
 public static string GetDescendantsPattern(string key)
 {
     return(SegmentHelper.GetDescendantsPattern(DictConsts.KeySeparator, key));
 }
示例#11
0
 public static string GetDescendantKey(string key, string relativeKey)
 {
     return(SegmentHelper.GetDescendantStr(DictConsts.KeySeparator, key, relativeKey));
 }
示例#12
0
 public static string GetParentKey(string key)
 {
     return(SegmentHelper.GetParentStr(DictConsts.KeySeparator, key));
 }
示例#13
0
 public static string GetSegment(string key)
 {
     return(SegmentHelper.GetSegment(DictConsts.KeySeparator, key));
 }