LibreOffice Module tools (master) 1
Functions | Variables
inetmsg.cxx File Reference
#include <sal/types.h>
#include <tools/datetime.hxx>
#include <tools/inetmsg.hxx>
#include <comphelper/string.hxx>
#include <rtl/character.hxx>
#include <o3tl/safeint.hxx>
#include <o3tl/sprintf.hxx>
#include <o3tl/string_view.hxx>
#include <map>
Include dependency graph for inetmsg.cxx:

Go to the source code of this file.

Functions

static sal_uInt16 ParseNumber (std::string_view rStr, size_t &nIndex)
 
static sal_uInt16 ParseMonth (std::string_view rStr, size_t &nIndex)
 

Variables

static const char * months [12]
 
const std::map< InetMessageMime, const char * > ImplINetMIMEMessageHeaderData
 

Function Documentation

◆ ParseMonth()

static sal_uInt16 ParseMonth ( std::string_view  rStr,
size_t &  nIndex 
)
static

Definition at line 71 of file inetmsg.cxx.

References o3tl::equalsIgnoreAsciiCase(), i, months, n, and nIndex.

◆ ParseNumber()

static sal_uInt16 ParseNumber ( std::string_view  rStr,
size_t &  nIndex 
)
static

Definition at line 58 of file inetmsg.cxx.

References n, nIndex, and o3tl::toInt32().

Variable Documentation

◆ ImplINetMIMEMessageHeaderData

const std::map<InetMessageMime, const char*> ImplINetMIMEMessageHeaderData
Initial value:
=
{
{ InetMessageMime::VERSION, "MIME-Version"},
{ InetMessageMime::CONTENT_DISPOSITION, "Content-Disposition"},
{ InetMessageMime::CONTENT_TYPE, "Content-Type"},
{ InetMessageMime::CONTENT_TRANSFER_ENCODING, "Content-Transfer-Encoding"}
}

Definition at line 196 of file inetmsg.cxx.

◆ months

const char* months[12]
static
Initial value:
=
{
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
}

Definition at line 52 of file inetmsg.cxx.

Referenced by ParseMonth().