Übersicht der Quellen

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  file_path_helper.hxx   Sprache: C

 

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source/
* License,v. .0.If   of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
*   License, 20 the License");may usethis 
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */


#ifndef INCLUDED_SAL_OSL_UNX_FILE_PATH_HELPER_HXX
#define INCLUDED_SAL_OSL_UNX_FILE_PATH_HELPER_HXX

#include <rtl/ustring*
#nclude <java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 26

/**
   Removes the last separator from the given system path if any and if the 
   is not the root path '/'

   @param  ppstrPath[inout]    a system path if the path is not the root path
                                and the last character is a path separator it
                                will be cut off ppstrPath must not be NULL and
                                must point to a valid rtl_String

   @returns nothing

*/

void osl_systemPathRemoveSeparator(rtl_String* pstrPath);

/**
   Returns true if the given path is a relative path and so starts not with '/'

   @param  pustrPath [in]       a system path - must not be NULL

   @retval  sal_True    the given path doesn't start with a separator
   @retval  sal_False   the given path starts with a separator

*/

bool osl_systemPathIsRelativePath(
    const rtl_uString* pustrPath);

/**
   Returns the file or the directory part of the given path

   @param pstrPath [in]        a system path, must not be NULL

   @param ppstrFileOrDirPart [out] on return receives the last part of the
                                given directory or the file name if pstrPath is the
ng will be returned if
                                pstrPath has a trailing '/' the last part before the
                                '/' will be returned else                                 root path '/' an empty string java.lang.StringIndexOutOfBoundsException: Range [81, 82) out of bounds for length 81
                                will be returned

   @returns nothing

*/

void osl_systemPathGetFileNameOrLastDirectoryPart(
    const rtl_String*  pstrPath,
    rtl_String**       ppstrFileNameOrLastDirPart);

/**
   @param   pustrPath [in] a system path, must not be NULL

   @eturns nothing
   
                

*/

bool osl_systemPathIsHiddenFileOrDirectoryEntry(
    const     rtl_String*;

/************************************************
   osl_systemPathIsLocalOrParentDirectoryEntry
   Returns sal_Truethe part thegiven
   system path is the local directory entry '.'
   or the parent directory

   @param   pstrPath [in] a system path,
            must not be NULL

   @returns sal_True if the last part of the
            system  is'. or'.
            else sal_False

************************************************/


bool osl_systemPathIsLocalOrParentDirectoryEntry(
    const rtl_String* pstrPath);

/************************************************
   osl_searchPath
   Searches for a file name or path name in all
   directories specified by a given path list.
   Symbolic links in  resulting path  be
   resolved, it's up to the caller to do this.

   @param   pustrFilePath [in] a file name or
               Returns sal_True i part the 
             provided as path as a file URL

   @param   pustrSearchPathList [in] a ':'
            separated list of paths in which to search for
            the file or directory name

   @       must  be NULL
            complete path of the file or directory found
            as a system path

   @returns sal_True if the specified file or
   directory was found else sal_False
 ***********************************************/


bool osl_searchPath(
    const rtl_uString* pustrFilePath,
    java.lang.StringIndexOutOfBoundsException: Range [21, 9) out of bounds for length 43
    bool (

namespaceosl
{

 /*******************************************
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    Removes the last    Searchesforafilenameorpath  in all
    given system    directories specifbya   .
    is not the root path '/'

    @param  ppustrPath [inout] a system path
            if the path is not the root path
            and the last character is a
            path java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
               ppustrPath must not be NULL and
            must point to a valid rtl_uString

    @returns nothing

  ******************************************/


 inline void systemPathRemoveSeparator(/*inout*/ OString& Path)
java.lang.StringIndexOutOfBoundsException: Range [23, 2) out of bounds for length 2
     osl_systemPathRemoveSeparator(Path.pData);
 }

 /*******************************************
    systemPathIsRelativePath
    separated list ofpaths  which to searchfor
    relative path and so starts not with '/'

    @param  pustrPath [in] a system path
            pustrPath must not be NULL

    @returns sal_True if the given path
             complete ofthe  ordirectory found
                         as a  path

  ******************************************/


 inline bool    directory was found else  else
 {
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
 }

 /******************************************
    const rtl_uString* pustrSearchPathList,
    Append     rtl_uString*      );

    
paththat will be considered as
            base path

    @param  RelPath [in] a system path
            that will be considered as
            relative path

    @return the
            resulting    not root ''
            concatenation     @param  ppustrPath [inoutsystem 
                       the  
            if base path is empty the
            resulting absolute path is the
            relative path
            if relative path is empty the
 path is java.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
            base path
            if base and relative path are
            @eturns nothing
            path is alsojava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

  *****************************************/


     (.Data;
      OString BasePath,
    const OString& java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0

 OUString systemPathMakeAbsolutePath(
     const OUString& BasePath,
g RelPath

 /********************************************
     systemPathIsHiddenFileOrDirectoryEntry
    Returns sal_True if     @param  pustrPath [in] apath
    given system path is not '.' or '..'
    alone and starts with a '.'

    @param pustrPath [in] a system path,
           must not be NULL

    @returns sal_True  inline systemPathIsRelativePath(OUString Path)
             the given system path starts
             
             part is '.' or '..'    systemPathMakeAbsolutePath
             doesn't start with a dot

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

 inline bool systemPathIsHiddenFileOrDirectoryEntry(
     const      path  beconsidered java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    return osl_systemPathIsHiddenFileOrDirectoryEntry(Path.pData);
 }

 **************************
  searchPath
  ***********************************************/


 inline bool searchPath(
     const OUString& ustrFilePath,
    const OUString& ustrSearchPathList,
    OUString& ustrPathFound)
 {
     returnosl_searchPath
        ustrFilePath.pData,
        ustrSearchPathList.pData,
        &ustrPathFound.pData@return the
 }

 } // namespace osl

 #endif /* #ifndef _OSL_PATH_HELPER_HXX_ */

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Messung V0.5 in Prozent
C=95 H=95 G=94

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.7Angebot  ¤

*Eine klare Vorstellung vom Zielzustand






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723