/* ====================================================================
 * Copyright (c) 2003-2006, Martin Hauner
 *                          http://subcommander.tigris.org
 *
 * Subcommander is licensed as described in the file doc/COPYING, which
 * you should have received as part of this distribution.
 * ====================================================================
 */

// sc
#include "PathOps.h"

// svn
#include <svn_path.h>


QString stripPath( const QString& path, const QString& strip )
{
  QString tmp = path;
  tmp.remove( strip );

  if( tmp.find('/') == 0 )
  {
    tmp.remove(0,1);
  }
  return tmp;
}

bool isPathURL( const QString& path )
{
  svn_boolean_t b = svn_path_is_url(path);
  return b == TRUE;
}


syntax highlighted by Code2HTML, v. 0.9.1