|
|
| version 1.233, 2016/11/01 23:10:41 | version 1.236, 2018/01/10 23:04:57 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b string parser class. | Parser: @b string parser class. |
| Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) | Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| */ | */ |
| Line 504 public: | Line 504 public: |
| result=new String(str, String::L_TAINTED /* no length as 0x00 can be inside */ ); | result=new String(str, String::L_TAINTED /* no length as 0x00 can be inside */ ); |
| return false; | return false; |
| } catch(...) { | } catch(...) { |
| error=SQL_Error("exception occured in String_sql_event_handlers::add_row_cell"); | error=SQL_Error("exception occurred in String_sql_event_handlers::add_row_cell"); |
| return true; | return true; |
| } | } |
| } | } |
| Line 826 MString::MString(): Methoded("string") { | Line 826 MString::MString(): Methoded("string") { |
| // ^string.split[delim][options] | // ^string.split[delim][options] |
| // ^string.split[delim][options][column name] | // ^string.split[delim][options][column name] |
| add_native_method("split", Method::CT_DYNAMIC, _split, 1, 3); | add_native_method("split", Method::CT_DYNAMIC, _split, 1, 3); |
| // old names for backward compatibility | // old names for backward compatibility |
| // ^string.lsplit[delim] | // ^string.lsplit[delim] |
| add_native_method("lsplit", Method::CT_DYNAMIC, _lsplit, 1, 1); | add_native_method("lsplit", Method::CT_DYNAMIC, _lsplit, 1, 1); |
| // ^string.rsplit[delim] | // ^string.rsplit[delim] |
| add_native_method("rsplit", Method::CT_DYNAMIC, _rsplit, 1, 1); | add_native_method("rsplit", Method::CT_DYNAMIC, _rsplit, 1, 1); |
| // ^string.match[regexp][options] | // ^string.match[regexp][options] |
| // ^string.match[regexp][options]{replacement-code} | // ^string.match[regexp][options]{replacement-code} |
| // ^string.match[regexp][options]{replacement-code}{code-if-nothing-is-found} | // ^string.match[regexp][options]{replacement-code}{code-if-nothing-is-found} |