Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.10.16;
Скачать: CL | DM;

Вниз

как разбить строку на лексемы   Найти похожие ветки 

 
Армянское радио   (2003-10-05 07:00) [0]

Сущий привет!

Сущий ара падскажи как разбить строку на лексемы
строка:"123123 23123 fghghfgh"

Сущий ара заранее благадарен!


 
Song ©   (2003-10-05 09:23) [1]

TStringList.CommaText


 
Армянское радио   (2003-10-05 09:33) [2]

А поканкретнее не мог бы :)


 
Palladin ©   (2003-10-05 09:37) [3]

а что конкретней? справку по TStrings.Delimiter почитай...


 
Song ©   (2003-10-05 09:37) [4]

With TStringList.Create Do
try
CommaText:="123123 23123 fghghfgh";
For t:=0 to Count-1 Do ShowMessage(Strings[t]);
finally
Free;
end;


 
Palladin ©   (2003-10-05 09:45) [5]


> Song © (05.10.03 09:37) [4]

CommaText это CommaText и с пробелом не прокатит


 
Palladin ©   (2003-10-05 09:48) [6]

сорри... прокатит....


 
Song ©   (2003-10-05 09:57) [7]

2Palladin © (05.10.03 09:48) [6]

Lists the strings in the TStrings object in system data format (SDF).

property CommaText: string;

Description

Use CommaText to get or set all the strings in the TStrings object in a single comma-delimited string.

When retrieving CommaText, any string in the list that include spaces, commas or quotes will be contained in double quotes, and any double quotes in a string will be repeated. For example, if the list contains the following strings:

Stri,ng 1

Stri"ng 2
String 3
String4

CommaText will return:

"Stri,ng 1","Stri""ng 2","String 3",String4

When assigning CommaText, the value is parsed as SDF formatted text. For SDF format, strings are separated by commas or spaces, and optionally enclosed in double quotes. Double quote marks that are part of the string are repeated to distinguish them from the quotes that surround the string. Spaces and commas that are not contained within double quote marks are delimiters. Two commas next to each other will indicate an empty string, but spaces that appear next to another delimiter are ignored. For example, suppose CommaText is set to:

"Stri,ng 1", "Stri""ng 2" , String 3,String4

The list will then contain:

Stri,ng 1

Stri"ng 2
String
3
String4

Note: CommaText is the same as the DelimitedText property with a delimiter of ‘,’ and a quote character of ‘”’.



Страницы: 1 вся ветка

Текущий архив: 2003.10.16;
Скачать: CL | DM;

Наверх




Память: 0.48 MB
Время: 0.023 c
1-51281
Peter
2003-10-06 16:40
2003.10.16
Процедуры


1-51253
MadDogNT
2003-10-03 11:09
2003.10.16
Delphi DLL и 1С


3-51120
AndrewK
2003-09-24 13:00
2003.10.16
Разделение прав на строки таблицы


1-51186
Странный...
2003-10-04 19:17
2003.10.16
перетаскивание объектов


14-51493
Soft
2003-09-28 18:14
2003.10.16
Биоритмы Windows.