Source
if (SUCCEED == eval_compare_token(ctx, &token->loc, "histogram_quantile", ZBX_CONST_STRLEN("histogram_quantile")))
/*
** Zabbix
** Copyright (C) 2001-2023 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
/* exit code in addition to SUCCEED/FAIL */
/* bit function types */
typedef enum
{
FUNCTION_OPTYPE_BIT_AND = 0,
FUNCTION_OPTYPE_BIT_OR,
FUNCTION_OPTYPE_BIT_XOR,
FUNCTION_OPTYPE_BIT_LSHIFT,
FUNCTION_OPTYPE_BIT_RSHIFT
}
zbx_function_bit_optype_t;
/* trim function types */
typedef enum
{
FUNCTION_OPTYPE_TRIM_ALL = 0,
FUNCTION_OPTYPE_TRIM_LEFT,
FUNCTION_OPTYPE_TRIM_RIGHT
}
zbx_function_trim_optype_t;
/******************************************************************************
* *
* Purpose: convert variant string value containing suffixed number to *
* floating point variant value *
* *
* Parameters: value - [OUT] the output value *
* value_num - [IN] the value to convert *
* *
* Return value: SUCCEED - the value was converted successfully *
* FAIL - otherwise *
* *
******************************************************************************/