\section{lib/common/colxlate.c File Reference}
\label{colxlate_8c}\index{lib/common/colxlate.\-c@{lib/common/colxlate.\-c}}
{\ttfamily \#include $<$stdio.\-h$>$}\\*
{\ttfamily \#include $<$stdlib.\-h$>$}\\*
{\ttfamily \#include $<$string.\-h$>$}\\*
{\ttfamily \#include $<$ctype.\-h$>$}\\*
{\ttfamily \#include \char`\"{}arith.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}color.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}colorprocs.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}colortbl.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}memory.\-h\char`\"{}}\\*
Include dependency graph for colxlate.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{colxlate_8c__incl}
\end{center}
\end{figure}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E}~\char`\"{}X11/\char`\"{}      /$\ast$ Must have final '/' $\ast$/
\item 
\#define {\bf D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E\-\_\-\-L\-E\-N}~((sizeof({\bf D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E})-\/1)/sizeof(char))
\item 
\#define {\bf I\-S\-N\-O\-N\-D\-F\-L\-T}({\bf s})~(({\bf s}) \&\& $\ast$({\bf s}) \&\& {\bf strncasecmp}({\bf D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E}, {\bf s}, {\bf D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E\-\_\-\-L\-E\-N}-\/1))
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
char $\ast$ {\bf canontoken} (char $\ast${\bf str})
\item 
{\bf int} {\bf colorxlate} (char $\ast${\bf str}, {\bf gvcolor\-\_\-t} $\ast$color, {\bf color\-\_\-type\-\_\-t} target\-\_\-type)
\item 
{\bf int} {\bf color\-Cvt} ({\bf gvcolor\-\_\-t} $\ast$ocolor, {\bf gvcolor\-\_\-t} $\ast$ncolor)
\item 
void {\bf set\-Color\-Scheme} (char $\ast${\bf s})
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{colxlate.\-c@{colxlate.\-c}!D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E@{D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E}}
\index{D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E@{D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E}!colxlate.c@{colxlate.\-c}}
\subsubsection[{D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E~\char`\"{}X11/\char`\"{}      /$\ast$ Must have final '/' $\ast$/}\label{colxlate_8c_a60851d951a5baf6cb2cccc2ba9420566}


Definition at line 221 of file colxlate.\-c.

\index{colxlate.\-c@{colxlate.\-c}!D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E\-\_\-\-L\-E\-N@{D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E\-\_\-\-L\-E\-N}}
\index{D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E\-\_\-\-L\-E\-N@{D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E\-\_\-\-L\-E\-N}!colxlate.c@{colxlate.\-c}}
\subsubsection[{D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E\-\_\-\-L\-E\-N}]{\setlength{\rightskip}{0pt plus 5cm}\#define D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E\-\_\-\-L\-E\-N~((sizeof({\bf D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E})-\/1)/sizeof(char))}\label{colxlate_8c_a83e28d74e75b0eedede5e50176805f86}


Definition at line 222 of file colxlate.\-c.

\index{colxlate.\-c@{colxlate.\-c}!I\-S\-N\-O\-N\-D\-F\-L\-T@{I\-S\-N\-O\-N\-D\-F\-L\-T}}
\index{I\-S\-N\-O\-N\-D\-F\-L\-T@{I\-S\-N\-O\-N\-D\-F\-L\-T}!colxlate.c@{colxlate.\-c}}
\subsubsection[{I\-S\-N\-O\-N\-D\-F\-L\-T}]{\setlength{\rightskip}{0pt plus 5cm}\#define I\-S\-N\-O\-N\-D\-F\-L\-T(
\begin{DoxyParamCaption}
\item[{}]{{\bf s}}
\end{DoxyParamCaption}
)~(({\bf s}) \&\& $\ast$({\bf s}) \&\& {\bf strncasecmp}({\bf D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E}, {\bf s}, {\bf D\-F\-L\-T\-\_\-\-S\-C\-H\-E\-M\-E\-\_\-\-L\-E\-N}-\/1))}\label{colxlate_8c_a638a4d10804442645aaca1943615b9ca}


Definition at line 223 of file colxlate.\-c.



\subsection{Function Documentation}
\index{colxlate.\-c@{colxlate.\-c}!canontoken@{canontoken}}
\index{canontoken@{canontoken}!colxlate.c@{colxlate.\-c}}
\subsubsection[{canontoken}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ canontoken (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{str}
\end{DoxyParamCaption}
)}\label{colxlate_8c_a2691e3653fd1328e6d5677968261a1c5}


Definition at line 145 of file colxlate.\-c.



References grealloc(), and N\-U\-L\-L.

\index{colxlate.\-c@{colxlate.\-c}!color\-Cvt@{color\-Cvt}}
\index{color\-Cvt@{color\-Cvt}!colxlate.c@{colxlate.\-c}}
\subsubsection[{color\-Cvt}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} color\-Cvt (
\begin{DoxyParamCaption}
\item[{{\bf gvcolor\-\_\-t} $\ast$}]{ocolor, }
\item[{{\bf gvcolor\-\_\-t} $\ast$}]{ncolor}
\end{DoxyParamCaption}
)}\label{colxlate_8c_a1db20d4a69a905598fdf36c056b67796}


Definition at line 509 of file colxlate.\-c.



References C\-M\-Y\-K\-\_\-\-B\-Y\-T\-E, C\-O\-L\-O\-R\-\_\-\-I\-N\-D\-E\-X, C\-O\-L\-O\-R\-\_\-\-O\-K, C\-O\-L\-O\-R\-\_\-\-S\-T\-R\-I\-N\-G, C\-O\-L\-O\-R\-\_\-\-U\-N\-K\-N\-O\-W\-N, colorxlate(), color\-\_\-s\-::\-H\-S\-V\-A, H\-S\-V\-A\-\_\-\-D\-O\-U\-B\-L\-E, color\-\_\-s\-::\-R\-G\-B\-A, color\-\_\-s\-::rgba, R\-G\-B\-A\-\_\-\-B\-Y\-T\-E, R\-G\-B\-A\-\_\-\-D\-O\-U\-B\-L\-E, R\-G\-B\-A\-\_\-\-W\-O\-R\-D, color\-\_\-s\-::rrggbbaa, color\-\_\-s\-::string, color\-\_\-s\-::type, and color\-\_\-s\-::u.

\index{colxlate.\-c@{colxlate.\-c}!colorxlate@{colorxlate}}
\index{colorxlate@{colorxlate}!colxlate.c@{colxlate.\-c}}
\subsubsection[{colorxlate}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} colorxlate (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{str, }
\item[{{\bf gvcolor\-\_\-t} $\ast$}]{color, }
\item[{{\bf color\-\_\-type\-\_\-t}}]{target\-\_\-type}
\end{DoxyParamCaption}
)}\label{colxlate_8c_a23632c26973c6b1ca9a65118214eaf93}


Definition at line 254 of file colxlate.\-c.



References hsvrgbacolor\-\_\-t\-::a, hsvrgbacolor\-\_\-t\-::b, C, color\-\_\-s\-::cmyk, C\-M\-Y\-K\-\_\-\-B\-Y\-T\-E, C\-O\-L\-O\-R\-\_\-\-I\-N\-D\-E\-X, C\-O\-L\-O\-R\-\_\-\-M\-A\-L\-L\-O\-C\-\_\-\-F\-A\-I\-L, C\-O\-L\-O\-R\-\_\-\-O\-K, C\-O\-L\-O\-R\-\_\-\-S\-T\-R\-I\-N\-G, C\-O\-L\-O\-R\-\_\-\-U\-N\-K\-N\-O\-W\-N, hsvrgbacolor\-\_\-t\-::g, grealloc(), hsvrgbacolor\-\_\-t\-::h, color\-\_\-s\-::\-H\-S\-V\-A, H\-S\-V\-A\-\_\-\-D\-O\-U\-B\-L\-E, int, M\-A\-X, M\-I\-N, hsvrgbacolor\-\_\-t\-::name, N\-U\-L\-L, hsvrgbacolor\-\_\-t\-::r, color\-\_\-s\-::\-R\-G\-B\-A, color\-\_\-s\-::rgba, R\-G\-B\-A\-\_\-\-B\-Y\-T\-E, R\-G\-B\-A\-\_\-\-D\-O\-U\-B\-L\-E, R\-G\-B\-A\-\_\-\-W\-O\-R\-D, color\-\_\-s\-::rrggbbaa, hsvrgbacolor\-\_\-t\-::s, color\-\_\-s\-::type, color\-\_\-s\-::u, and hsvrgbacolor\-\_\-t\-::v.



Referenced by color\-Cvt(), and Import\-\_\-coord\-\_\-clusters\-\_\-from\-\_\-dot().

\index{colxlate.\-c@{colxlate.\-c}!set\-Color\-Scheme@{set\-Color\-Scheme}}
\index{set\-Color\-Scheme@{set\-Color\-Scheme}!colxlate.c@{colxlate.\-c}}
\subsubsection[{set\-Color\-Scheme}]{\setlength{\rightskip}{0pt plus 5cm}void set\-Color\-Scheme (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{s}
\end{DoxyParamCaption}
)}\label{colxlate_8c_ab1379bf2a1cc1be6cae2f5e9ea9549b0}


Definition at line 561 of file colxlate.\-c.



Referenced by emit\-\_\-clusters().

