All Questions
4 questions
4
votes
1
answer
521
views
Parsing a command line
I've written an object which allows parsing and serializing a command line. I don't in any way consider this done, but this is the beginning of it. I know there are other implementations out there ...
3
votes
2
answers
2k
views
Validating Card Number in Delphi
As part of processing card payments, before even attempting to process, I need to check and validate the card number to make sure it's valid. For this, I've encapsulated this validation in a record ...
3
votes
1
answer
15k
views
Function to split text
The following pascal function (compiled with Delphi) will split strings. It works perfectly, but how to improve the code? For example, to avoid using the repeat-until loop.
...
6
votes
3
answers
1k
views
Produce an array of strings from a single string
I have a function that reads a string like this
(AnimalCount+HumanCount)
and the result of this function is an array of strings
...