View previous topic :: View next topic |
Author |
Message |
Dr. Dread Professional Member
Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Tue Dec 27, 2005 10:20 am Post subject: |
|
|
Version 5.1 has been uploaded. Single addition: function MatchLines now takes an IDENTITY parameter
which forces full-line matching.
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
Back to top |
|
|
marty Professional Member
Joined: 10 May 2001 Posts: 789
|
Posted: Wed Dec 28, 2005 12:37 pm Post subject: |
|
|
IDENTITY works like a charm for me
Much appriciated.. |
|
Back to top |
|
|
Dr. Dread Professional Member
Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
|
Back to top |
|
|
Aslan Valued Contributor
Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Sat Jan 07, 2006 11:57 pm Post subject: |
|
|
Hey Dread..
Is there an opposite function to to the following?
@string(Thousand, [input string (integer only)])
Converts an integer value into a string with thousand separator (as set by the user's system).
Basically what I need is a function that removes the thousand separator if it exists
eg. 3,456,789 converted to 3456789
Thanks in advance |
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sun Jan 08, 2006 12:29 am Post subject: |
|
|
a suggestion ... from memory, @STRING(DEL,%%string,",") will remove the comma from %%STRING ... you can use this to remove commas from numbers
serge _________________
|
|
Back to top |
|
|
Aslan Valued Contributor
Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Sun Jan 08, 2006 2:18 am Post subject: |
|
|
This did it for me
@string(DelType, [input string], [Character type - default is Alpha])
I used the PUNCT character type
Character types:
Alpha = All uppercase/lowercase letters (depends on locale)
Upper = A..Z + uppercase accented letters + national chars (depends on locale)
Lower = a..z + lowercase accented letters + national chars (depends on locale)
AZUpper = only A..Z
AZLower = only a..z
Extended = Remove extended chars (128-255)
Punct = Strip punctuation chars !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~€‚ƒ„…†‡ˆ‰‹‘’“”•–—˜™›
Digit = 0..9
Delim = Remove delimiters [char pos 1-47, 58-64, 91-96, 123-126]
Control = Remove any control chars [char pos 0-31 in char table]
AlphaNum = a..z (upper/lowercase) + 0..9 + _ |
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sun Jan 08, 2006 7:20 am Post subject: |
|
|
i thought about that after the post as it has the added benefit of getting rid of full stops which are used in some countries as commas for numbers
serge _________________
|
|
Back to top |
|
|
Dr. Dread Professional Member
Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Sun Mar 05, 2006 8:51 am Post subject: |
|
|
Version 5.3 has been released. This version fixes a bug in the FileOpsRes range of functions which prevented
the reuse of a previously used file slot.
Registered users should have been notified by mail.
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Wed Mar 08, 2006 8:11 am Post subject: |
|
|
dr dread,
is there a way i can use your string.dll to permute words in a string so that for example:
life is good => is life good, is good life, life good is, good is life, good life is
thanks in advance
serge _________________
|
|
Back to top |
|
|
Dr. Dread Professional Member
Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Wed Mar 08, 2006 9:22 am Post subject: |
|
|
String.DLL has no premade function to do that. You could use WordCount to get the count and then repeat ... until
with GetWords to extract all the words to variables.
Then comes the hard part of doing the permutations - you'll just have to make nested loops for each of
the words extracted.
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Wed Mar 08, 2006 9:45 am Post subject: |
|
|
ok, thanks for that
serge _________________
|
|
Back to top |
|
|
Aslan Valued Contributor
Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Sun Mar 12, 2006 5:44 pm Post subject: |
|
|
Hey Dread,
Can you add BITWISE functions to your String.dll? |
|
Back to top |
|
|
Dr. Dread Professional Member
Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Thu Mar 16, 2006 9:36 am Post subject: |
|
|
Never consided bitwise functions - normally they wouldn't be very relevant in relation to strings, would they?
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
Back to top |
|
|
DaveR Valued Contributor
Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Wed Jun 21, 2006 3:17 am Post subject: |
|
|
Hey Dread,
Is there a bug in the MatchLines function? I've tried different versions of string.dll with the same results. I can't get it to do anything other copy the whole input file to the outputfile . Or maybe there's an error in the help file?
I'm using:
Code: | %t = @string(FileOps,MatchLines,Data\listings.xml,Data\newfile.tmp,tv,GETMATCH,,) |
_________________ cheers
Dave |
|
Back to top |
|
|
Dr. Dread Professional Member
Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Wed Jun 21, 2006 8:41 am Post subject: |
|
|
It should work. Just tested with an HTML file and the code snippet that you listed. Works as expected.
If ya want me to have a look try to mail me an example input file. Mail address in help file.
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
Back to top |
|
|
|