summaryrefslogtreecommitdiffstats
path: root/Lib/test/string_tests.py
Commit message (Expand)AuthorAgeFilesLines
* #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-11/+11
* Reenable test_ucs4 and remove some duplicated lines.Florent Xicluna2010-09-131-1/+1
* Merged revisions 77729 via svnmerge fromEzio Melotti2010-01-241-9/+9
* Merged revisions 77249 via svnmerge fromAntoine Pitrou2010-01-021-4/+2
* Merged revisions 77247 via svnmerge fromAntoine Pitrou2010-01-021-0/+6
* Merged revisions 77241 via svnmerge fromAntoine Pitrou2010-01-021-0/+24
* Issue #7435: Remove duplicate int/long tests, and otherMark Dickinson2009-12-051-2/+1
* Issue #5859: Remove use of fixed-length buffers for float formattingMark Dickinson2009-05-011-8/+1
* Merged revisions 66631 via svnmerge fromAmaury Forgeot d'Arc2008-09-261-0/+16
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-1/+1
* Merged revisions 61034-61036,61038-61048 via svnmerge fromChristian Heimes2008-02-241-0/+8
* Move UserList to collections.Raymond Hettinger2008-02-121-1/+1
* Removed PyInt_GetMax and sys.maxintChristian Heimes2007-12-041-18/+18
* Removed some leftovers from the str8 daysChristian Heimes2007-11-221-4/+0
* Rename buffer -> bytearray.Guido van Rossum2007-11-211-2/+2
* Merged revisions 59005-59040 via svnmerge fromChristian Heimes2007-11-181-0/+28
* Merging the py3k-pep3137 branch back into the py3k branch.Guido van Rossum2007-11-061-15/+15
* Patch 1280, by Alexandre Vassalotti.Guido van Rossum2007-10-191-0/+4
* Patch # 1145 by Thomas Lee:Guido van Rossum2007-09-271-3/+4
* Remove the simple slicing API. All slicing is now done with slice objects.Thomas Wouters2007-08-301-11/+11
* Merge the trunk changes in. Breaks socket.ssl for now.Thomas Wouters2007-08-281-2/+12
* Changes in anticipation of stricter str vs. bytes enforcement.Guido van Rossum2007-08-271-24/+27
* Changes in anticipation of stricter str vs. bytes enforcement.Guido van Rossum2007-08-271-4/+6
* Fix some tests by deleting stuff.Guido van Rossum2007-06-141-52/+0
* Merged revisions 55817-55961 via svnmerge fromGuido van Rossum2007-06-131-0/+26
* Rename checks for test_support.have_unicode (we alwaysWalter Dörwald2007-06-081-20/+19
* Fix test_str.py so that it tests the str8 class.Walter Dörwald2007-06-071-1/+1
* Make test_str.py pass.Guido van Rossum2007-05-151-5/+5
* Merged revisions 55325-55327 via svnmerge fromGuido van Rossum2007-05-141-2/+2
* Merged revisions 55007-55179 via svnmerge fromGuido van Rossum2007-05-071-7/+7
* test_unicode.py passes again 9except for problemsWalter Dörwald2007-05-051-17/+2
* Rip out all the u"..." literals and calls to unicode().Guido van Rossum2007-05-021-27/+27
* Merged revisions 53952-54987 via svnmerge fromGuido van Rossum2007-04-271-0/+3
* Addendum of patch #1669633: additional tests for bytes methods.Georg Brandl2007-03-061-168/+176
* - PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone;Guido van Rossum2007-02-111-1/+1
* Rip out 'long' and 'L'-suffixed integer literals.Guido van Rossum2007-01-151-3/+3
* SF patch 1631942 by Collin Winter:Guido van Rossum2007-01-101-1/+1
* Four months of trunk changes (including a few releases...)Thomas Wouters2006-12-131-1/+1
* Merged revisions 46753-51188 via svnmerge fromThomas Wouters2006-08-111-3/+40
* Partially merge trunk into p3yk. The removal of Mac/Tools is confusing svnThomas Wouters2006-06-081-6/+18
* Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk.Thomas Wouters2006-05-271-0/+307
* Merge ssize_t branch.Martin v. Löwis2006-02-151-1/+3
* Fix bug:Michael W. Hudson2005-10-211-0/+9
* Disable encoding/decoding test, if unicode is disabled.Walter Dörwald2005-07-281-19/+20
* * Beef-up tests for str.count().Raymond Hettinger2005-02-201-0/+28
* * Beef-up testing of str.__contains__() and str.find().Raymond Hettinger2005-02-201-0/+24
* SF bug #1054139: serious string hashing error in 2.4b1Raymond Hettinger2004-10-261-0/+9
* test_bug1001011(): Verify thatTim Peters2004-08-271-5/+33
* Move test_bug1001011() to string_tests.MixinStrUnicodeTest so thatWalter Dörwald2004-08-261-0/+19
* SF #989185: Drop unicode.iswide() and unicode.width() and addHye-Shik Chang2004-08-041-25/+0
, no more dict */ uint32_t nextToUpdate; /* index from which to continue dictionary update */ int compressionLevel; } LZ4HC_CCtx_internal; #else typedef struct { unsigned int hashTable[LZ4HC_HASHTABLESIZE]; unsigned short chainTable[LZ4HC_MAXD]; const unsigned char* end; /* next block here to continue on current prefix */ const unsigned char* base; /* All index relative to this position */ const unsigned char* dictBase; /* alternate base for extDict */ unsigned char* inputBuffer; /* deprecated */ unsigned int dictLimit; /* below that point, need extDict */ unsigned int lowLimit; /* below that point, no more dict */ unsigned int nextToUpdate; /* index from which to continue dictionary update */ int compressionLevel; } LZ4HC_CCtx_internal; #endif #define LZ4_STREAMHCSIZE (4*LZ4HC_HASHTABLESIZE + 2*LZ4HC_MAXD + 56) /* 262200 */ #define LZ4_STREAMHCSIZE_SIZET (LZ4_STREAMHCSIZE / sizeof(size_t)) union LZ4_streamHC_u { size_t table[LZ4_STREAMHCSIZE_SIZET]; LZ4HC_CCtx_internal internal_donotuse; }; /* previously typedef'd to LZ4_streamHC_t */ /* LZ4_streamHC_t : This structure allows static allocation of LZ4 HC streaming state. State must be initialized using LZ4_resetStreamHC() before first use. Static allocation shall only be used in combination with static linking. When invoking LZ4 from a DLL, use create/free functions instead, which are API and ABI stable. */ /*-************************************ * Deprecated Functions **************************************/ /* see lz4.h LZ4_DISABLE_DEPRECATE_WARNINGS to turn off deprecation warnings */ /* deprecated compression functions */ LZ4_DEPRECATED("use LZ4_compress_HC() instead") LZ4LIB_API int LZ4_compressHC (const char* source, char* dest, int inputSize); LZ4_DEPRECATED("use LZ4_compress_HC() instead") LZ4LIB_API int LZ4_compressHC_limitedOutput (const char* source, char* dest, int inputSize, int maxOutputSize); LZ4_DEPRECATED("use LZ4_compress_HC() instead") LZ4LIB_API int LZ4_compressHC2 (const char* source, char* dest, int inputSize, int compressionLevel); LZ4_DEPRECATED("use LZ4_compress_HC() instead") LZ4LIB_API int LZ4_compressHC2_limitedOutput (const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); LZ4_DEPRECATED("use LZ4_compress_HC_extStateHC() instead") LZ4LIB_API int LZ4_compressHC_withStateHC (void* state, const char* source, char* dest, int inputSize); LZ4_DEPRECATED("use LZ4_compress_HC_extStateHC() instead") LZ4LIB_API int LZ4_compressHC_limitedOutput_withStateHC (void* state, const char* source, char* dest, int inputSize, int maxOutputSize); LZ4_DEPRECATED("use LZ4_compress_HC_extStateHC() instead") LZ4LIB_API int LZ4_compressHC2_withStateHC (void* state, const char* source, char* dest, int inputSize, int compressionLevel); LZ4_DEPRECATED("use LZ4_compress_HC_extStateHC() instead") LZ4LIB_API int LZ4_compressHC2_limitedOutput_withStateHC(void* state, const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); LZ4_DEPRECATED("use LZ4_compress_HC_continue() instead") LZ4LIB_API int LZ4_compressHC_continue (LZ4_streamHC_t* LZ4_streamHCPtr, const char* source, char* dest, int inputSize); LZ4_DEPRECATED("use LZ4_compress_HC_continue() instead") LZ4LIB_API int LZ4_compressHC_limitedOutput_continue (LZ4_streamHC_t* LZ4_streamHCPtr, const char* source, char* dest, int inputSize, int maxOutputSize); /* Deprecated Streaming functions using older model; should no longer be used */ LZ4_DEPRECATED("use LZ4_createStreamHC() instead") LZ4LIB_API void* LZ4_createHC (char* inputBuffer); LZ4_DEPRECATED("use LZ4_saveDictHC() instead") LZ4LIB_API char* LZ4_slideInputBufferHC (void* LZ4HC_Data); LZ4_DEPRECATED("use LZ4_freeStreamHC() instead") LZ4LIB_API int LZ4_freeHC (void* LZ4HC_Data); LZ4_DEPRECATED("use LZ4_compress_HC_continue() instead") LZ4LIB_API int LZ4_compressHC2_continue (void* LZ4HC_Data, const char* source, char* dest, int inputSize, int compressionLevel); LZ4_DEPRECATED("use LZ4_compress_HC_continue() instead") LZ4LIB_API int LZ4_compressHC2_limitedOutput_continue (void* LZ4HC_Data, const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); LZ4_DEPRECATED("use LZ4_createStreamHC() instead") LZ4LIB_API int LZ4_sizeofStreamStateHC(void); LZ4_DEPRECATED("use LZ4_resetStreamHC() instead") LZ4LIB_API int LZ4_resetStreamStateHC(void* state, char* inputBuffer); #if defined (__cplusplus) } #endif #endif /* LZ4_HC_H_19834876238432 */ /*-************************************************** * !!!!! STATIC LINKING ONLY !!!!! * Following definitions are considered experimental. * They should not be linked from DLL, * as there is no guarantee of API stability yet. * Prototypes will be promoted to "stable" status * after successfull usage in real-life scenarios. ***************************************************/ #ifdef LZ4_HC_STATIC_LINKING_ONLY /* protection macro */ #ifndef LZ4_HC_SLO_098092834 #define LZ4_HC_SLO_098092834 /*! LZ4_compress_HC_destSize() : v1.8.0 (experimental) * Will try to compress as much data from `src` as possible * that can fit into `targetDstSize` budget. * Result is provided in 2 parts : * @return : the number of bytes written into 'dst' * or 0 if compression fails. * `srcSizePtr` : value will be updated to indicate how much bytes were read from `src` */ int LZ4_compress_HC_destSize(void* LZ4HC_Data, const char* src, char* dst, int* srcSizePtr, int targetDstSize, int compressionLevel); /*! LZ4_compress_HC_continue_destSize() : v1.8.0 (experimental) * Similar as LZ4_compress_HC_continue(), * but will read a variable nb of bytes from `src` * to fit into `targetDstSize` budget. * Result is provided in 2 parts : * @return : the number of bytes written into 'dst' * or 0 if compression fails. * `srcSizePtr` : value will be updated to indicate how much bytes were read from `src`. */ int LZ4_compress_HC_continue_destSize(LZ4_streamHC_t* LZ4_streamHCPtr, const char* src, char* dst, int* srcSizePtr, int targetDstSize); /*! LZ4_setCompressionLevel() : v1.8.0 (experimental) * It's possible to change compression level between 2 invocations of LZ4_compress_HC_continue*() */ void LZ4_setCompressionLevel(LZ4_streamHC_t* LZ4_streamHCPtr, int compressionLevel); #endif /* LZ4_HC_SLO_098092834 */ #endif /* LZ4_HC_STATIC_LINKING_ONLY */