Unit U_Position

Uses
Classes, Interfaces, Objects and Records
Types
Constants
Variables

Description

***************************************************************************

Librairies pour Delphi

Copyright 1990-2024 Patrick Prémartin under AGPL 3.0 license.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

***************************************************************************

This repository contains functions, procedures and classes to use in Delphi projects (console, VCL, FireMonkey and others). It's my "everything reuseable things" toolbox.

The units to be used in your projects can be found in the "src" folder. Some features are explained on my blog or have been coded live on Twitch.

Examples of use in the form of VCL or FireMonkey projects are available in the "samples" subfolder.

***************************************************************************

Author(s) : Patrick PREMARTIN

Site : https://developpeur-pascal.fr/librairies-publiques.html

Project site : https://github.com/DeveloppeurPascal/librairies

*************************************************************************** File last update : 03/08/2024 22:03:34 Signature : 75b968c384a6e48107bd22236739f11cb25a857a ***************************************************************************

Overview

Functions and Procedures

Function Len(Chaine : String): Byte;
Function Pos_Left(Carac : Char; Chaine : String): Byte;
Function Pos_Right(Carac : Char; Chaine : String): Byte;
Function Pos_Left_N(Carac : Char; Chaine : String; N : Byte): Byte;
Function Pos_Right_N(Carac : Char; Chaine : String; N : Byte): Byte;
Function Pos_Left_Debut(Carac : Char; Chaine : String; Debut : Byte): Byte;
Function Pos_Right_Debut(Carac : Char; Chaine : String; Debut : Byte): Byte;
Function Pos_Left_Debut_N(Carac:Char; Chaine:String; Debut, N:Byte):Byte;
Function Pos_Right_Debut_N(Carac:Char; Chaine:String; Debut, N:Byte):Byte;
Function Non_Pos_Left(Carac : Char; Chaine : String): Byte;
Function Non_Pos_Right(Carac : Char; Chaine : String): Byte;

Description

Functions and Procedures

Function Len(Chaine : String): Byte;

Partie des fonctions.

Function Pos_Left(Carac : Char; Chaine : String): Byte;

renvoie la longueur de la chaine

Function Pos_Right(Carac : Char; Chaine : String): Byte;

donne la premiŠre position de Carac dans Chaine par la gauche.

Function Pos_Left_N(Carac : Char; Chaine : String; N : Byte): Byte;

donne la premiŠre position de Carac dans Chaine par la droite.

Function Pos_Right_N(Carac : Char; Chaine : String; N : Byte): Byte;

donne la n-iŠme position de Carac … partir de la gauche.

Function Pos_Left_Debut(Carac : Char; Chaine : String; Debut : Byte): Byte;

donne la n-iŠme position de Carac … partir de la droite.

Function Pos_Right_Debut(Carac : Char; Chaine : String; Debut : Byte): Byte;

position de Carac … partir du Debut-iŠme caractŠre de la chaine vers la droite.

Function Pos_Left_Debut_N(Carac:Char; Chaine:String; Debut, N:Byte):Byte;

position de Carac … partir de Debut-iŠme caractŠre de la chaine vers la gauche.

Function Pos_Right_Debut_N(Carac:Char; Chaine:String; Debut, N:Byte):Byte;

donne la n-iŠme position de Carac dans Chaine en partant du Debut- iŠme caractŠre et en allant vers la droite.

Function Non_Pos_Left(Carac : Char; Chaine : String): Byte;

donne la n-iŠme position de Carac dans Chaine en partant du Debut- iŠme caractŠre et en allant vers la gauche.

Function Non_Pos_Right(Carac : Char; Chaine : String): Byte;

cherche la position du premier caractŠre diff‚rent de carac … partir de la gauche de la chaine.

My libraries for Delphi (c) 1990-2025 Patrick PREMARTIN - Powered by PasDoc
Generated by PasDoc 0.16.0.