Branch: Tag:

2007-06-02

2007-06-02 04:11:30 by Martin Bähr <mbaehr@email.archlab.tuwien.ac.at>

string(8) -> string(0..255)

Rev: refdoc/xml.txt:1.4
Rev: src/builtin_functions.c:1.639
Rev: src/modules/spider/spider.c:1.133

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: builtin_functions.c,v 1.638 2007/05/26 18:38:39 mast Exp $ + || $Id: builtin_functions.c,v 1.639 2007/06/02 04:11:30 mbaehr Exp $   */      #include "global.h"
1471:    * Some wide-strings related functions    */    - /*! @decl string(8) string_to_unicode(string s) + /*! @decl string(0..255) string_to_unicode(string s)    *!    *! Converts a string into an UTF16 compliant byte-stream.    *!
1609:    push_string(out);   }    - /*! @decl string unicode_to_string(string(8) s) + /*! @decl string unicode_to_string(string(0..255) s)    *!    *! Converts an UTF16 byte-stream into a string.    *!
1768:    push_string(out);   }    - /*! @decl string(8) string_to_utf8(string s) -  *! @decl string(8) string_to_utf8(string s, int extended) + /*! @decl string(0..255) string_to_utf8(string s) +  *! @decl string(0..255) string_to_utf8(string s, int extended)    *!    *! Converts a string into an UTF-8 compliant byte-stream.    *!
1902:    push_string(out);   }    - /*! @decl string utf8_to_string(string(8) s) -  *! @decl string utf8_to_string(string(8) s, int extended) + /*! @decl string utf8_to_string(string(0..255) s) +  *! @decl string utf8_to_string(string(0..255) s, int extended)    *!    *! Converts an UTF-8 byte-stream into a string.    *!
2206:    push_string(out);   }    - /*! @decl string(8) __parse_pike_type(string(8) t) + /*! @decl string(0..255) __parse_pike_type(string(0..255) t)    */   static void f_parse_pike_type( INT32 args )   {
9191:       /* Some Wide-string stuff */    - /* function(string:string(8)) */ + /* function(string:string(0..255)) */    ADD_EFUN("string_to_unicode", f_string_to_unicode,    tFunc(tStr,tStr8), OPT_TRY_OPTIMIZE);    - /* function(string(8):string) */ + /* function(string(0..255):string) */    ADD_EFUN("unicode_to_string", f_unicode_to_string,    tFunc(tStr8,tStr), OPT_TRY_OPTIMIZE);    - /* function(string,int|void:string(8)) */ + /* function(string,int|void:string(0..255)) */    ADD_EFUN("string_to_utf8", f_string_to_utf8,    tFunc(tStr tOr(tInt,tVoid),tStr8), OPT_TRY_OPTIMIZE);    - /* function(string(8),int|void:string) */ + /* function(string(0..255),int|void:string) */    ADD_EFUN("utf8_to_string", f_utf8_to_string,    tFunc(tStr8 tOr(tInt,tVoid),tStr), OPT_TRY_OPTIMIZE);