Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Macros | Functions
fmt_bits.cpp File Reference
#include "fmt_defs.h"
#include <rw_printf.h>
#include <ctype.h>
#include <errno.h>
#include <locale.h>
#include <signal.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <wctype.h>
#include <ios>
#include <iostream>
#include <locale>
Include dependency graph for fmt_bits.cpp:

Go to the source code of this file.

Data Structures

struct  Bitnames
 

Macros

#define _RWSTD_TEST_SRC
 
#define BITNAME(qual, name)   { #qual "::" #name, #name, qual::name }
 
#define SIGNAL(val)   { val, #val }
 
#define ERRNO(val)   { val, #val }
 
#define APPEND(bit)
 

Functions

int _rw_fmtflags (const FmtSpec &spec, Buffer &buf, int bits)
 
int _rw_fmtiostate (const FmtSpec &spec, Buffer &buf, int bits)
 
int _rw_fmtopenmode (const FmtSpec &spec, Buffer &buf, int bits)
 
int _rw_fmtseekdir (const FmtSpec &spec, Buffer &buf, int bits)
 
int _rw_fmtevent (const FmtSpec &spec, Buffer &buf, int event)
 
int _rw_fmtlc (const FmtSpec &spec, Buffer &buf, int val)
 
int _rw_fmtmonpat (const FmtSpec &spec, Buffer &buf, const char pat[4])
 
int _rw_fmtsignal (const FmtSpec &spec, Buffer &buf, int val)
 
int _rw_fmterrno (const FmtSpec &spec, Buffer &buf, int val)
 
int _rw_fmtlasterror (const FmtSpec &spec, Buffer &buf, int val)
 
int _rw_fmtmask (const FmtSpec &spec, Buffer &buf, int bits)
 
int _rw_fmtcharmask (const FmtSpec &spec, Buffer &buf, int c)
 
int _rw_fmtbits (const FmtSpec &spec, Buffer &buf, const void *pelems, size_t elemsize)
 

Macro Definition Documentation

◆ _RWSTD_TEST_SRC

#define _RWSTD_TEST_SRC

fmt_bits.cpp - definitions of snprintfa helpers

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2005-2008 Rogue Wave Software. Inc.

Definition at line 30 of file fmt_bits.cpp.

◆ APPEND

#define APPEND (   bit)
Value:
if (mask & bit_ ## bit) \
strcat (strcat (str, #bit), "|"); \
else (void)0
const char * str
Definition exec.cpp:170

◆ BITNAME

#define BITNAME (   qual,
  name 
)    { #qual "::" #name, #name, qual::name }

Definition at line 70 of file fmt_bits.cpp.

◆ ERRNO

#define ERRNO (   val)    { val, #val }

◆ SIGNAL

#define SIGNAL (   val)    { val, #val }

Function Documentation

◆ _rw_fmtbits()

int _rw_fmtbits ( const FmtSpec &  spec,
Buffer &  buf,
const void *  pelems,
size_t  elemsize 
)

Definition at line 1215 of file fmt_bits.cpp.

◆ _rw_fmtcharmask()

int _rw_fmtcharmask ( const FmtSpec &  spec,
Buffer &  buf,
int  c 
)

Definition at line 1126 of file fmt_bits.cpp.

◆ _rw_fmterrno()

int _rw_fmterrno ( const FmtSpec &  spec,
Buffer &  buf,
int  val 
)

Definition at line 657 of file fmt_bits.cpp.

◆ _rw_fmtevent()

int _rw_fmtevent ( const FmtSpec &  spec,
Buffer &  buf,
int  event 
)

Definition at line 316 of file fmt_bits.cpp.

◆ _rw_fmtflags()

int _rw_fmtflags ( const FmtSpec &  spec,
Buffer &  buf,
int  bits 
)

Definition at line 154 of file fmt_bits.cpp.

◆ _rw_fmtiostate()

int _rw_fmtiostate ( const FmtSpec &  spec,
Buffer &  buf,
int  bits 
)

Definition at line 236 of file fmt_bits.cpp.

◆ _rw_fmtlasterror()

int _rw_fmtlasterror ( const FmtSpec &  spec,
Buffer &  buf,
int  val 
)

Definition at line 1066 of file fmt_bits.cpp.

◆ _rw_fmtlc()

int _rw_fmtlc ( const FmtSpec &  spec,
Buffer &  buf,
int  val 
)

Definition at line 349 of file fmt_bits.cpp.

◆ _rw_fmtmask()

int _rw_fmtmask ( const FmtSpec &  spec,
Buffer &  buf,
int  bits 
)

Definition at line 1102 of file fmt_bits.cpp.

◆ _rw_fmtmonpat()

int _rw_fmtmonpat ( const FmtSpec &  spec,
Buffer &  buf,
const char  pat[4] 
)

Definition at line 406 of file fmt_bits.cpp.

◆ _rw_fmtopenmode()

int _rw_fmtopenmode ( const FmtSpec &  spec,
Buffer &  buf,
int  bits 
)

Definition at line 253 of file fmt_bits.cpp.

◆ _rw_fmtseekdir()

int _rw_fmtseekdir ( const FmtSpec &  spec,
Buffer &  buf,
int  bits 
)

Definition at line 299 of file fmt_bits.cpp.

◆ _rw_fmtsignal()

int _rw_fmtsignal ( const FmtSpec &  spec,
Buffer &  buf,
int  val 
)

Definition at line 461 of file fmt_bits.cpp.