Files
Darek Slusarczyk ce6fc5e2d8 orabug #31414039: mysqlndx apply std::string_view, remove MYSQLND_CSTRING
- add util::param_string for input PHP arguments
- remove custom util::string_view class
- add new alias util::string_view equal to std::string_view from C++17
- replace all occurrences of MYSQLND_CSTRING with new util::string_view
- replace all occurrences of MYSQLND_STRING with util::string
- few other fixes and refactorings
2020-07-22 14:42:12 +02:00

34 lines
1.3 KiB
C++

/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 2006-2020 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Darek Slusarczyk <marines@php.net> |
+----------------------------------------------------------------------+
*/
#include "php_api.h"
#include "mysqlnd_api.h"
#include "strings.h"
namespace mysqlx {
namespace util {
std::ostream& operator<<(std::ostream& os, const string& str)
{
return os << str.c_str();
}
} // namespace util
} // namespace mysqlx