Skip to main content

A string tokenizer implementation

Project description

This project is a python implementation of the StringTokenizer class present in java

How to import ?

from stringtokenizer import StringTokenizer

How to declare object?

s1=StringTokenizer(st)-->uses default delimeter set

s2=StringTokenizer(st,delim)-->uses provided delim set. Uses each character present in provided delim string as delimeters

s3=StringTokenizer(st,delim,retdelim)-->same as no. 2 but returns delim as tokens depending on True/False of retdelim

Functions Contained and how to use?

s1=StringTokenizer(st)

s1.countTokens()-->returns number of tokens left to parse

s1.hasMoreTokens()-->returns True/False depending on wheather any more tokens are left to parse

s1.nextToken()-->returns next Token

s1.nextToken(delim)-->returns next token based on the provided delim and updates the previously provided delim with the new ones

made by Tanmay Mandal for any query please mail on tanmay.mandal@zohomail.in

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stringtokenizer-1.1.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stringtokenizer-1.1.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file stringtokenizer-1.1.1.tar.gz.

File metadata

  • Download URL: stringtokenizer-1.1.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for stringtokenizer-1.1.1.tar.gz
Algorithm Hash digest
SHA256 b77f439a63e53d9ac69e7c8fcec5767c1afa9ade703c948841bf67b96ed95570
MD5 a294b7bd5989baf7bba757e02576ba48
BLAKE2b-256 7d87437ef2de36e2c183fa946cca7543aa6ffde33ce4283a3912206ffc1cc2ae

See more details on using hashes here.

File details

Details for the file stringtokenizer-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for stringtokenizer-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 752f11238c42b956c6b95750221add0ae4748658c51186bfed1d65a5b3fa9b0e
MD5 a4502f06db10955d7378431bfb003d9a
BLAKE2b-256 69aba147835f58c5ed749026007aa28e54f7b9dbc003fb969f870adc42a331a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page