/[gentoo]/src/packages/mstring.py
Gentoo

Contents of /src/packages/mstring.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (download) (as text) (vendor branch)
Thu Feb 19 01:49:53 2004 UTC (10 years, 4 months ago) by marduk
Branch: packages_g_o, MAIN
CVS Tags: release_1-5, ver_0-1, v1_3_1, HEAD
Branch point for: pre_2-0, v1_3
Changes since 1.1: +0 -0 lines
File MIME type: text/x-python

1 marduk 1.1 """marduk's helpin' heap 'o string functions"""
2    
3    
4     def replace_sub(s,new,start,end=None):
5     if end is None:
6     end = start
7     s2 = s[:start] + new + s[end + 1:]
8     newpos = start + len(new)
9    
10     return (s2,newpos)

  ViewVC Help
Powered by ViewVC 1.1.20