php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
scanf.c File Reference
#include <stdio.h>
#include <limits.h>
#include <ctype.h>
#include "php.h"
#include "php_variables.h"
#include <locale.h>
#include "zend_execute.h"
#include "zend_operators.h"
#include "zend_strtod.h"
#include "php_globals.h"
#include "basic_functions.h"
#include "scanf.h"

Go to the source code of this file.

Data Structures

struct  CharSet
 
struct  CharSet::Range
 

Macros

#define SCAN_NOSKIP   0x1 /* Don't skip blanks. */
 
#define SCAN_SUPPRESS   0x2 /* Suppress assignment. */
 
#define SCAN_UNSIGNED   0x4 /* Read an unsigned value. */
 
#define SCAN_WIDTH   0x8 /* A width value was supplied. */
 
#define SCAN_SIGNOK   0x10 /* A +/- character is allowed. */
 
#define SCAN_NODIGITS   0x20 /* No digits have been scanned. */
 
#define SCAN_NOZERO   0x40 /* No zero digits have been scanned. */
 
#define SCAN_XOK   0x80 /* An 'x' is allowed. */
 
#define SCAN_PTOK   0x100 /* Decimal point is allowed. */
 
#define SCAN_EXPOK   0x200 /* An exponent is allowed. */
 
#define UCHAR(x)
 
#define STATIC_LIST_SIZE   16
 

Typedefs

typedef struct CharSet CharSet
 
typedef zend_long(* int_string_formater) (const char *, char **, int)
 

Functions

PHPAPI int ValidateFormat (char *format, int numVars, int *totalSubs)
 
PHPAPI int php_sscanf_internal (char *string, char *format, int argCount, zval *args, int varStart, zval *return_value)
 

Macro Definition Documentation

◆ SCAN_EXPOK

#define SCAN_EXPOK   0x200 /* An exponent is allowed. */

Definition at line 90 of file scanf.c.

◆ SCAN_NODIGITS

#define SCAN_NODIGITS   0x20 /* No digits have been scanned. */

Definition at line 86 of file scanf.c.

◆ SCAN_NOSKIP

#define SCAN_NOSKIP   0x1 /* Don't skip blanks. */

Definition at line 80 of file scanf.c.

◆ SCAN_NOZERO

#define SCAN_NOZERO   0x40 /* No zero digits have been scanned. */

Definition at line 87 of file scanf.c.

◆ SCAN_PTOK

#define SCAN_PTOK   0x100 /* Decimal point is allowed. */

Definition at line 89 of file scanf.c.

◆ SCAN_SIGNOK

#define SCAN_SIGNOK   0x10 /* A +/- character is allowed. */

Definition at line 85 of file scanf.c.

◆ SCAN_SUPPRESS

#define SCAN_SUPPRESS   0x2 /* Suppress assignment. */

Definition at line 81 of file scanf.c.

◆ SCAN_UNSIGNED

#define SCAN_UNSIGNED   0x4 /* Read an unsigned value. */

Definition at line 82 of file scanf.c.

◆ SCAN_WIDTH

#define SCAN_WIDTH   0x8 /* A width value was supplied. */

Definition at line 83 of file scanf.c.

◆ SCAN_XOK

#define SCAN_XOK   0x80 /* An 'x' is allowed. */

Definition at line 88 of file scanf.c.

◆ STATIC_LIST_SIZE

#define STATIC_LIST_SIZE   16

◆ UCHAR

#define UCHAR ( x)
Value:
unsigned char zend_uchar
Definition zend_types.h:57

Definition at line 92 of file scanf.c.

Typedef Documentation

◆ CharSet

typedef struct CharSet CharSet

◆ int_string_formater

typedef zend_long(* int_string_formater) (const char *, char **, int)

Definition at line 109 of file scanf.c.

Function Documentation

◆ php_sscanf_internal()

PHPAPI int php_sscanf_internal ( char * string,
char * format,
int argCount,
zval * args,
int varStart,
zval * return_value )

Definition at line 574 of file scanf.c.

◆ ValidateFormat()

PHPAPI int ValidateFormat ( char * format,
int numVars,
int * totalSubs )

Definition at line 307 of file scanf.c.