src/Pure/General/name_space.ML
changeset 20530 448594cbd82b
parent 19367 6af9ee48b563
child 21858 05f57309170c
--- a/src/Pure/General/name_space.ML	Wed Sep 13 12:40:39 2006 +0200
+++ b/src/Pure/General/name_space.ML	Wed Sep 13 21:41:25 2006 +0200
@@ -27,7 +27,7 @@
   val append: string -> string -> string
   val qualified: string -> string -> string
   val base: string -> string
-  val drop_base: string -> string
+  val qualifier: string -> string
   val map_base: (string -> string) -> string -> string
   val suffixes_prefixes: 'a list -> 'a list list
   val suffixes_prefixes_split: int -> int -> 'a list -> 'a list list
@@ -84,8 +84,8 @@
 fun base "" = ""
   | base name = List.last (unpack name);
 
-fun drop_base "" = ""
-  | drop_base name = pack (#1 (split_last (unpack name)));
+fun qualifier "" = ""
+  | qualifier name = pack (#1 (split_last (unpack name)));
 
 fun map_base _ "" = ""
   | map_base f name =
@@ -248,7 +248,7 @@
 fun add_path elems (Naming (path, policy)) =
   if elems = "//" then Naming ("", (qualified, #2 policy))
   else if elems = "/" then Naming ("", policy)
-  else if elems = ".." then Naming (drop_base path, policy)
+  else if elems = ".." then Naming (qualifier path, policy)
   else Naming (append path elems, policy);
 
 fun no_base_names (Naming (path, (qualify, accs))) =