⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 string_cnstr.html

📁 通用的数据库中间库
💻 HTML
字号:
<html><head><meta name="KEYWORDS" content="      library, C++,       Oracle, SQLServer, DB2, Sybase, Informix, InterBase, SQLBase, ODBC, 
      SQL, server, client, database, programming, development, software, 
      Win32, Windows, Linux, Unix, Solaris,
      Microsoft, Borland, Centura, Gupta, IBM"><meta name="DESCRIPTION" content=
"SQLAPI++ is C++ library for accessing SQL databases (Oracle, SQLServer, Sybase, DB2, InterBase, SQLBase, Informix, ODBC).
It uses native APIs, provides low-level access to database-specific features."><title>SQLAPI++ Library - Online Documentation - SAString::SAString</title></head><body bgcolor="#ffffff" BACKGROUND="../images/bg.gif" text="#000000"><!--GlbHdr--> <table WIDTH="600" height="40" frame="hsides" BORDER="2" BORDERCOLOR="#004fcd" align="right" cellpadding="0" cellspacing="2" id="TABLE1">
    
    <tr><!--class="GlbDefault"-->        
        <td width="70" bgcolor="#000094" bordercolor="black" align="middle"><A href="/index.html" style="TEXT-DECORATION: none">
			<font color="white" size="3" face="sans-serif">
			<b>Home</b></font></A></td></TD>
        <td width="70" bgcolor="#000094" bordercolor="black" align="middle"><A href="/HowTo/index.html" style="TEXT-DECORATION: none">			<font color="white" size="3" face="sans-serif">
			<b>How To</b></font></A></td><!--class="GlbActive"-->
        <td width="70" bgcolor="#00bb00" bordercolor="black" align="middle"><A href="/OnLineDoc/index.html" style="TEXT-DECORATION: none">			<font color="white" size="3" face="sans-serif">
			<b>Online Documentation</b></font></A></td><!--class="GlbDefault"-->        
		<td width="70" bgcolor="#000094" bordercolor="black" align="middle"><A href="/Support/index.html" style="TEXT-DECORATION: none">			<font color="white" size="3" face="sans-serif">
			<b>Support</b></font></A></td>
        <td width=70 bgcolor=#000094 bordercolor=black align=middle><A href="/Download/index.html" style="TEXT-DECORATION: none" >
			<font color=white size=3  face=sans-serif>
			<b>Download</b></font></A></td>
        <td width="70" bgcolor="#000094" bordercolor="black" align="middle"><A href="/Order/index.html" style="TEXT-DECORATION: none">			<font color="white" size="3" face="sans-serif">
			<b>Order</b></font></A></td>    </tr>
</table>

<p>&nbsp;</p>
<p>&nbsp;</p>
<table width="100%">
	<tr>
		<td valign="top" width="165"><!--LeftMenu-->			
			<table frame="void" CELLSPACING="5" width="165">
				<tr><td><p>&nbsp;</p></td>
				</tr>
				<tr>
					<td><img align="middle" src="../images/green.gif" WIDTH="12" HEIGHT="12"><A href="Command.html" style="TEXT-DECORATION: none">
					<font color="white" size="2" face="sans-serif">
					SACommand</A> </FONT> </td>
				</tr>
				<tr>
					<td><img align="middle" src="../images/green.gif" WIDTH="12" HEIGHT="12"><A href="Connection.html" style="TEXT-DECORATION: none">
					<font color="white" size="2" face="sans-serif">
					SAConnection</A> </FONT> </td>
				</tr>
				<tr>
					<td><img align="middle" src="../images/green.gif" WIDTH="12" HEIGHT="12"><A href="Exception.html" style="TEXT-DECORATION: none">
					<font color="white" size="2" face="sans-serif">
					SAException</font></A> </td>
				</tr>
				<tr>
					<td><img align="middle" src="../images/green.gif" WIDTH="12" HEIGHT="12"><A href="Field.html" style="TEXT-DECORATION: none">
					<font color="white" size="2" face="sans-serif">
					SAField</A> </FONT> </td>
				</tr>
				<tr>
					<td><img align="middle" src="../images/green.gif" WIDTH="12" HEIGHT="12"><A href="Param.html" style="TEXT-DECORATION: none">
					<font color="white" size="2" face="sans-serif">
					SAParam</A> </FONT> </td>
				</tr>
				<tr><td><hr></td></tr>
				<tr>
					<td><img align=middle src="../images/red.gif" WIDTH="12" HEIGHT="12">
					<A href="String.html" style ="TEXT-DECORATION: none" >
					<font color=white size=2 face=sans-serif>
					SAString</A> </FONT> </td>
				</tr>
				<tr>
					<td><img align=middle src="../images/green.gif" WIDTH="12" HEIGHT="12">
					<A href="DateTime.html" style ="TEXT-DECORATION: none" >
					<font color=white size=2 face=sans-serif>
					SADateTime</A> </FONT> </td>
				</tr>
			</table>
		</td><!--empty column-->
		<td width="20"> 
			<p>&nbsp;&nbsp;</p>
		</td><!--Content-->
		<td valign="top" align="left">
			<table width="100%" cellspacing="2" cellpadding="2">
				<tr>
					<td align="left"><A href="String_Usage.html" style="TEXT-DECORATION: none"><h3>Usage</h3></A>
					</td>
					<td align="left"><A href="String.html" style="TEXT-DECORATION: none"><h3>Class Members</h3></A>
					</td>
					<td align="left"><A href="String_Examples.html" style="TEXT-DECORATION: none"><h3>Examples</h3></A>
					</td>
				</tr>			
			</table>
	<h1>SAString::SAString</h1>

	<p><font face="Arial"><b>SAString( );</b></font></p>
	<p><font face="Arial"><b> SAString(const 
      SAString&amp;</b> 
      stringSrc<b> );</b></font></p>

	<p><STRONG><FONT 
     face=Arial>SAString(SAChar</STRONG> 
     ch 
     <STRONG>, int</STRONG> 
     nRepeat=1<STRONG>);</STRONG></FONT></p>

	<p><font face="Arial"><b> SAString(const char *</b> 
      lpsz<b>  
      );</b></font></p>

	<p><font face="Arial"> 
      <b>  
      </b></font><font face="Arial"><b> SAString(const wchar_t *</b> 
      lpsz<b>  
      );</b></font></p>

	<p><font face="Arial"><b> SAString(const char *</b> 
      lpch<b>, 
      int</b> 
      nLength<b>  
      );</b></font></p>

	<p><font face="Arial"> 
      <b>  
      </b></font><font face="Arial"><b> SAString(const wchar_t *</b> 
      lpch<b>, 
      int</b> 
      nLength<b> 
  
      );</b></font></p>

	<p><font face="Arial"><b> SAString(const unsigned char *</b> 
      psz<b> );<BR>  
      </b></font></p>

	<p><font face="Arial"><b>  SAString(const void *</b> pBuffer<STRONG>, 
            int</STRONG> nLengthInBytes<b> );<BR>  
      </b></font></p>

		<h3>Parameters</h3>
        <P><EM>stringSrc</EM>.&nbsp;&nbsp;&nbsp; An existing 
        <B>SAString</B> object to be copied into this <B>SAString</B> 
        object.</P>
        <P><EM>ch</EM>.&nbsp;&nbsp;&nbsp; A single character to be repeated 
            <I>nRepeat</I> 
        times.</P>
        <P><EM>nRepeat</EM>.&nbsp;&nbsp;&nbsp; The repeat count for 
            <I>ch</I>.</P>
        <P><EM>lpsz</EM>    .&nbsp;&nbsp;&nbsp; 
        A null-terminated string to be copied into this <B>SAString</B> 
        object.</P>
        <P><EM>lpch</EM>.&nbsp;&nbsp;&nbsp; A pointer to an array of 
            characters of length <I>nLength</I>, not 
        null-terminated.</P>
        <P><EM>nLength</EM>.&nbsp;&nbsp;&nbsp; A count of 
        the number of characters in <EM>lpch</EM>.</P>
        <P><EM>psz</EM>    .&nbsp;&nbsp;&nbsp; 
        A null-terminated string to be copied into this <B>SAString</B> 
        object.</P>
        <P><EM>pBuffer</EM>.&nbsp;&nbsp;&nbsp; A pointer to a 
        binary data buffer to be copied into this <B>SAString</B> 
 
        object.</P>
        <P><EM>nLengthInBytes</EM>.&nbsp;&nbsp;&nbsp; A length of 
            <EM>pBuffer</EM> in bytes.</P>

		<h3>Remarks</h3>
        <P>Each of these constructors initializes a new <B>SAString</B> 
        object with the specified data.</P>
        <P>Because the constructors copy the input data into new allocated 
        storage, you should be aware that memory exceptions may result. Note 
        that some of these constructors act as conversion functions. This 
        allows you to substitute, for example, an <B>const char*</B> where a 
        <B>SAString</B> object is expected.&nbsp; </P>
            <P>Several forms of the constructor have special purposes: 
            <UL type=disc>
                <LI><B>SAString( const char *</B> <I>lpsz</I> 
                <B>)</B>&nbsp;&nbsp; Constructs a <B>SAString</B> from an ANSI 
                (multibyte) string.<BR><BR>
                <LI><B>SAString( const wchar_t *</B> <I>lpsz</I> 
                <B>)</B>&nbsp;&nbsp; Constructs a <B>SAString</B> from a Unicode 
                string.<BR><BR>
                <LI><B>SAString( const unsigned char*</B> <I>psz</I> 
                <B>)</B>&nbsp;&nbsp; Allows you to construct a <B>SAString</B> 
                from a pointer to <B>unsigned char</B>. </LI></UL>
			
			<h3>Server specific notes</h3>
      <P>No specific information.</P>
            <H3>See also</H3>
      <P><A href="String_operator_eq.html">operator 
            =</A>  </P>

			<h3>Problems and Questions</h3>
			<p>			If 
			you don't find the answer to you questions or 
            have some problems on using the Library, please, send e-mail to <A href="mailto:howto@sqlapi.com">howto@sqlapi.com</A>.
			</p>
		</td>
	<tr></tr>
</table>
</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -