Unit U_Position

Description

C2PP ***************************************************************************

My libraries for Delphi Copyright (c) 1990-2026 Patrick PREMARTIN

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

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

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://librairies.developpeur-pascal.fr

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

*************************************************************************** File last update : 2026-03-30T16:35:19.666+02:00 Signature : 89afb2815a58673cac84917676948b1b79035cde ***************************************************************************

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-2026 Patrick PREMARTIN - Powered by PasDoc
Generated by PasDoc 1.0.2.