>  Docs Center  >  Libraries  >  Motley  >  MGH_PATH_ISABS

MGH_PATH_ISABS

MGH_PATH_ISABS
  ROUTINE NAME:
  MGH_PATH_ISABS

Purpose


  Determine whether a name represents an absolute path on the
  current OS.

Category


  Strings.

Calling Sequence


  result = MGH_PATH_ISABS(str)

Arguments


  str (input, scalar or array string)
    The string to be tested.

Return Value


  The function returns a byte scalar or array with the same
  shape as the input. The value is 1B if the string represents an
  absolute path, otherwise 0B.

Procedure


  On Windows the functions tests whether the string starts with
  '?\:' or '\\'. On Unix it tests for a leading '/'.

Restrictions


  Works on Windows and Unix only. It shouldn't be too hard to extend
  it for other OS families.
###########################################################################
  This software is provided subject to the following conditions:
  1. NIWA makes no representations or warranties regarding the
    accuracy of the software, the use to which the software may
    be put or the results to be obtained from the use of the
    software. Accordingly NIWA accepts no liability for any loss
    or damage (whether direct of indirect) incurred by any person
    through the use of or reliance on the software.
  2. NIWA is to be acknowledged as the original author of the
    software where the software is used or presented in any form.
###########################################################################

Modification History


  Mark Hadfield, 2002-01:
    Written.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us