pike.git / lib / modules / String.pmod

version» Context lines:

pike.git/lib/modules/String.pmod:1:   #pike __REAL_VERSION__      #define BEGIN 32    + constant Buffer = __builtin.Buffer; +    //! @decl string count(string haystack, string needle)   //!   //! This function counts the number of times the @[needle]   //! can be found in @[haystack].   //!   //! @note   //! Intersections between needles are not counted, ie   //! @tt{count("....","..")@} is @tt{2@}.   //!   constant count=__builtin.string_count;