Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2003.10.16;
Скачать: [xml.tar.bz2];

Вниз

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

 
Армянское радио   (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;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.538 c
6-51393
Dakis
2003-08-15 03:30
2003.10.16
SMTP server


3-51145
Alex-kosmonavt
2003-09-24 14:12
2003.10.16
импорт БД


3-51147
Kalyan
2003-09-26 17:05
2003.10.16
Как в существующую базу данных добавить новое ключевое поле


3-51091
Sergg
2003-09-25 15:19
2003.10.16
Правильная организация совместного доступа к


1-51234
Буфер обмена
2003-10-03 14:32
2003.10.16
Clipboard.AsText - белеберда получается





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский