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.7.tar.gz (2.2 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.7-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stringtokenizer-1.1.7.tar.gz
  • Upload date:
  • Size: 2.2 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.7.tar.gz
Algorithm Hash digest
SHA256 9ffa31e5e0825157e2743ab0ede25d7ac94db9eb28753b8c6de75a81f208b4ce
MD5 7bf0387dd24ca1232b17e5b475ac2b37
BLAKE2b-256 b0538ab2524f5e473fb18ea1ea0dd9f9f855f9f20b275f60fa0b442ae42bf871

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stringtokenizer-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cf7269683e8970c13e2f86050fcc167ff19af8cb647af0f10acbf806c9af521b
MD5 ac4f5c74d882b5827426f6b15eec0345
BLAKE2b-256 392181c1c977b9276f27318b6f3c71623222fba9aad79b37794c6d63811b133b

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