Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
dbForge Studio for PostgreSQL 2.3.212
HTMLPad 2020 16.2
WeBuilder 2020 16.2
Rapid CSS 2020 16.2
Rapid PHP 2020 16.2
C# HTML to PDF 2020.8.1
Flowrigami 1.0.0.1
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Top Code
Uber Clone with Safety Measure Addons 2.0
Answers phpSoftPro 3.12
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.1
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
Related Code
Int To Str
Shortest Remaining Time Job Scheduling Str
Byte To Str
Data Str
Java Code Video Str
Php Video Str
Cctv Str
Str
All | Freeware

Code 1-20 of 69   Pages: Go to  1  2  3  4  Next >>  page  






It's a simple recipe to convert a str type string with pure unicode code point (e.g string = "\u5982\u679c\u7231" ) to an unicode type string.
Actually, this method has the same effect with 'u' prefix. But differently, it allows you to pass a variable of code points string as well as a constant one.



REAL case insensitive version of str.replace that keeps the letter case of the original expression (Doesn't only replace Foo and foo to ...foo... but to ...Foo.. and ...foo...).



The str() in the standard library behaves in a slightly weird way when applied against lists: on each element of the list, the repr() is appended. In contrast, this module provides a deep_str() that deeply applies str() across lists.



FUNCTION VAR = STR2VAR(STR)

Returns the variable or array of variables, VAR, matching the pattern STR. Matching variables must be of same type.

a = 3;
b = str2var('a'); % b is now equal to a, i.e. 3.

a1 =...



Str is a C++ class that is designed to make strings almost as easy to work with as they are in languages like TCL or Python. The Str class has minimal outside dependencies, is implemented as a single source file, as is designed to be user-customized.



A simple constant type which overrides the base integer type to provide a useful name on str().



The format_iter recipe defines a simple wrapper around str.join and str.format that makes it easy to format an arbitrary iterable with a specified format string and item separator.



Python 3 makes a clean separation between unicode text strings (str) and byte
strings (bytes). However, for some tasks (notably networking), it makes sense
to apply the same process to str and bytes, usually relying on the byte string



>>> import datetime
>>> str(datetime.datetime.now())
'2010-03-21 21:33:32.750246'
>>> str(datetime.date.today())
'2010-03-21'


This function goes the other way for date and datetime...



Ever found "str" % (a,b) a bit limited?
Do you want to supply some arguments now, and fill the rest in later?
Or mix positional and named arguments, i.e. supply a tuple and a dict?
Do you want to put string templates in a...



Python's built in function str() and unicode() return a string representation of the object in byte string and unicode string respectively. This enhanced version of str() and unicode() can be used as handy functions to convert between byte string...



[dec_cod, code_bin, code_book] = lempel_ziv(alf, str)

It's a function with three output variables and two input variables.
'dec_cod' is the decimal code that codify the input string 'str'.
'code_bin' is the binary code of the...



obj = findInstrument('STR') returns an interface object to an instrument whose model name, vendor name or VISA resource matches any part of the string STR.

findInstrument requires the Instrument Control Toolboxd-OC?D? and a VISA...



Function determines whether the string str consists only of blank characters. For strings of blank characters function returns logical 1. For empty strings function returns logical 0. For non-character arguments function returns a type mismatch...



Create a new type called STR with a character array inside, implemented as a structure. It was inspired in Visual Basic syntax.
It was implemented several operators and functions overloads, but allows any character array function using...



EndsWith is a web based tutorial through which author describes about Endswith(str) which checks whether the end of the specified instance match with standard string expression. Here author offers code snippet to execute the above said process,...



Splits strings with multiple separators instead of one (e.g. str.split()).



This string Formatter works exactly as the default string.Formatter one (i.e., as str.format), with the exception that None values are rendered as empty strings instead of "None". Moreover, any attempt to access attributes or items of...



Have you ever tried to log an exception of unknown type ? What's in it ? How to fetch stack trace ? Will str(e) return plain ascii or international chars ? Is logger ready for it ? This recipe provides a formatting function.



You need to deal with text strings which include non-ASCII characters. Python has a first class unicode type which you should always use instead of str to represent text.