pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:4577:
PIKEFUN string encode_json(...) { pop_n_elems(args); push_constant_text ("null"); } } /*! @endclass */
+
/*! @class DestructImmediate
+
*! An empty class that can be intherited to get the PROGRAM_DESTRUCT_IMMEDIATE
+
*! flag set.
+
*/
+
+
PIKECLASS DestructImmediate
+
program_flags PROGRAM_DESTRUCT_IMMEDIATE;
+
{
+
}
+
+
/*! @endclass
+
*/
+
PMOD_EXPORT PIKEFUN int levenshtein_distance(string a, string b) { int i, j, n, *lev_i, *lev_p; /* Simple cases: strings are equal or one of them is empty: */ if (a == b) RETURN 0; if (a->len == 0) RETURN b->len; if (b->len == 0) RETURN a->len;