src/Pure/System/options.scala
changeset 69074 787f3db8e313
parent 69073 d05defa39e3d
child 69366 b6dacf6eabe3
equal deleted inserted replaced
69073:d05defa39e3d 69074:787f3db8e313
   277   {
   277   {
   278     def apply(name: String): String = get(name, Options.String, s => Some(s))
   278     def apply(name: String): String = get(name, Options.String, s => Some(s))
   279     def update(name: String, x: String): Options = put(name, Options.String, x)
   279     def update(name: String, x: String): Options = put(name, Options.String, x)
   280   }
   280   }
   281   val string = new String_Access
   281   val string = new String_Access
       
   282 
       
   283   def proper_string(name: String): Option[String] =
       
   284     Library.proper_string(string(name))
   282 
   285 
   283   def seconds(name: String): Time = Time.seconds(real(name))
   286   def seconds(name: String): Time = Time.seconds(real(name))
   284 
   287 
   285 
   288 
   286   /* external updates */
   289   /* external updates */
   441     def apply(name: String): String = value.string(name)
   444     def apply(name: String): String = value.string(name)
   442     def update(name: String, x: String): Unit = upd(opts => opts.string.update(name, x))
   445     def update(name: String, x: String): Unit = upd(opts => opts.string.update(name, x))
   443   }
   446   }
   444   val string = new String_Access
   447   val string = new String_Access
   445 
   448 
       
   449   def proper_string(name: String): Option[String] =
       
   450     Library.proper_string(string(name))
       
   451 
   446   def seconds(name: String): Time = value.seconds(name)
   452   def seconds(name: String): Time = value.seconds(name)
   447 }
   453 }