\hypertarget{interfacedc__string_1_1stoi}{}\section{dc\+\_\+string\+:\+:stoi Interface Reference}
\label{interfacedc__string_1_1stoi}\index{dc\+\_\+string\+::stoi@{dc\+\_\+string\+::stoi}}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
integer function \hyperlink{interfacedc__string_1_1stoi_aa14d39bb6c46aace6ea491292728329d}{atoi\+\_\+scalar} (string, default)
\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 53 of file dc\+\_\+string.\+f90.



\subsection{Member Function/\+Subroutine Documentation}
\mbox{\Hypertarget{interfacedc__string_1_1stoi_aa14d39bb6c46aace6ea491292728329d}\label{interfacedc__string_1_1stoi_aa14d39bb6c46aace6ea491292728329d}} 
\index{dc\+\_\+string\+::stoi@{dc\+\_\+string\+::stoi}!atoi\+\_\+scalar@{atoi\+\_\+scalar}}
\index{atoi\+\_\+scalar@{atoi\+\_\+scalar}!dc\+\_\+string\+::stoi@{dc\+\_\+string\+::stoi}}
\subsubsection{\texorpdfstring{atoi\+\_\+scalar()}{atoi\_scalar()}}
{\footnotesize\ttfamily integer function dc\+\_\+string\+::stoi\+::atoi\+\_\+scalar (\begin{DoxyParamCaption}\item[{character(len = $\ast$), intent(in)}]{string,  }\item[{integer, intent(in), optional}]{default }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}}



Definition at line 535 of file dc\+\_\+string.\+f90.


\begin{DoxyCode}
535     \textcolor{comment}{!}
536     \textcolor{comment}{! string で与えられる文字型変数を、整数型変数にして返します。}
537     \textcolor{comment}{! もしも string が数値に変換できない場合、default が返ります。}
538     \textcolor{comment}{! default を指定しない場合は 0 が返ります。}
539     \textcolor{comment}{!}
540     \textcolor{keywordtype}{character(len = *)}, \textcolor{keywordtype}{intent(in)}:: \hyperlink{namespacedc__types_adb76910ff05e3b9fe3436567f8f8dac6}{string}
541     \textcolor{keywordtype}{integer}, \textcolor{keywordtype}{intent(in)}, \textcolor{keywordtype}{optional}:: \hyperlink{namespacegtool__history__internal_aa7fc82d2ca1961a254be1acb599afbb1}{default}
542     \textcolor{keywordtype}{integer}:: ios
543 
544     \textcolor{keywordflow}{continue}
545 
546     \textcolor{keyword}{read}(unit=\hyperlink{namespacedc__types_adb76910ff05e3b9fe3436567f8f8dac6}{string}, fmt=\textcolor{stringliteral}{"(i80)"}, iostat=ios) result
547     \textcolor{keywordflow}{if} (ios /= 0) \textcolor{keywordflow}{then}
548       \textcolor{keywordflow}{if} (\textcolor{keyword}{present}(\hyperlink{namespacegtool__history__internal_aa7fc82d2ca1961a254be1acb599afbb1}{default})) \textcolor{keywordflow}{then}
549         result = \hyperlink{namespacegtool__history__internal_aa7fc82d2ca1961a254be1acb599afbb1}{default}
550       \textcolor{keywordflow}{else}
551         result = 0
552 \textcolor{keywordflow}{      endif}
553 \textcolor{keywordflow}{    endif}
\end{DoxyCode}


The documentation for this interface was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
dc\+\_\+utils/\hyperlink{dc__string_8f90}{dc\+\_\+string.\+f90}\end{DoxyCompactItemize}
