Results 1 to 7 of 7

Thread: Is there a library that validates strings

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2013
    Posts
    200

    Is there a library that validates strings

    Hi, is there a library that checks against the types I stated above? It doesn't matter if it's C# C++ another library. These are data types used by a download manager / bittorrent client.

    ADDR INTERFACE METALINK_FILE PID SIZE VALUE
    COMMAND INTERFACES METHOD POLL TAG VERSION
    DIGEST IPADDRESS METHOD PORT TOKEN [=SIZE],tail[=SIZE]
    DIR IPADDRESS[,...] MINUTES PORT... TORRENT_FILE [true|false]
    DSCP KEYWORD N PROTO TYPE [true|false|A:B]
    FILE LANGUAGE NUM PROXY TYPE plain|arc4
    GID LENGTH OPT RATIO URI true|false
    HEADER LEVEL OS REFERER URI[,...] true|false|mem
    HOST:PORT LOCATION[,...] PEER_AGENT SEC USER *
    INDEX... LOG PEER_ID_PREFIX SELECTOR USER_AGENT *

    EDIT: What I need is ex. if I want to validate against IPADDRESS these must return true;

    Code:
    string: 233.93.15.1 - returns true
    string: 353.93.15.1 - returns true
    string: 15.25       - returns false

    if I want it to validate DIR this must happen.

    Code:
    string: C:\Program Files\7-Zip\      - returns true
    string: D:\music\michael_jackson\ - returns true
    string: D/mp3           - returns false
    Last edited by nikel; Jul 4th, 2018 at 11:28 AM. Reason: I added more info
    I'm not a man of too many faces
    The mask I wear is one

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width