本文整理汇总了C++中copyStrLast函数的典型用法代码示例。如果您正苦于以下问题:C++ copyStrLast函数的具体用法?C++ copyStrLast怎么用?C++ copyStrLast使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了copyStrLast函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: N_NIMCALL
N_NIMCALL(void, addpackage_172126)(Stringtableobj133012* packages, NimStringDesc* p) {
NI x;
NimStringDesc* name;
x = versionsplitpos_172023(p);
name = copyStrLast(p, ((NI) 0), (NI)(x - ((NI) 1)));
{
NimStringDesc* version;
if (!(x < (p ? p->Sup.len : 0))) goto LA3;
version = copyStr(p, (NI)(x + ((NI) 1)));
{
NimStringDesc* LOC7;
NIM_BOOL LOC8;
LOC7 = 0;
LOC7 = nstGet(packages, name);
LOC8 = 0;
LOC8 = HEX3CHEX2E_172064(LOC7, version);
if (!LOC8) goto LA9;
nstPut(packages, name, version);
}
LA9: ;
}
goto LA1;
LA3: ;
{
nstPut(packages, name, ((NimStringDesc*) &TMP1660));
}
LA1: ;
}
示例2: N_NIMCALL
N_NIMCALL(void, addpackage_196084)(Stringtableobj140209* packages, NimStringDesc* p) {
NI x;
NimStringDesc* name;
x = versionsplitpos_196008(p);
name = copyStrLast(p, ((NI) 0), (NI)(x - ((NI) 1)));
{
NimStringDesc* version;
if (!(x < (p ? p->Sup.len : 0))) goto LA3;
version = copyStr(p, (NI)(x + ((NI) 1)));
{
NimStringDesc* LOC7;
NIM_BOOL LOC8;
LOC7 = 0;
LOC7 = getordefault_140814(packages, name);
LOC8 = 0;
LOC8 = HEX3CHEX2E_196034(LOC7, version);
if (!LOC8) goto LA9;
nstPut(packages, name, version);
}
LA9: ;
}
goto LA1;
LA3: ;
{
nstPut(packages, name, ((NimStringDesc*) &TMP1794));
}
LA1: ;
}
示例3: N_NIMCALL
N_NIMCALL(void, addpackage_277083_1623492514)(Stringtableobj152608* packages0, NimStringDesc* p0) {
NI x0;
NimStringDesc* name0;
x0 = versionsplitpos_277007_1623492514(p0);
name0 = copyStrLast(p0, ((NI) 0), (NI)(x0 - ((NI) 1)));
{
NimStringDesc* version0;
if (!(x0 < (p0 ? p0->Sup.len : 0))) goto LA3;
version0 = copyStr(p0, (NI)(x0 + ((NI) 1)));
{
NimStringDesc* LOC7;
NIM_BOOL LOC8;
LOC7 = (NimStringDesc*)0;
LOC7 = getordefault_153214_603679043(packages0, name0);
LOC8 = (NIM_BOOL)0;
LOC8 = HEX3CHEX2E_277033_1623492514(LOC7, version0);
if (!LOC8) goto LA9;
nstPut(packages0, name0, version0);
}
LA9: ;
}
goto LA1;
LA3: ;
{
nstPut(packages0, name0, ((NimStringDesc*) &T1623492514_5));
}
LA1: ;
}
示例4: N_NIMCALL
N_NIMCALL(NimStringDesc*, canondynlibname_154459)(NimStringDesc* s) {
NimStringDesc* result;
NI start;
NI ende;
result = 0;
{
NIM_BOOL LOC3;
LOC3 = 0;
LOC3 = nsuStartsWith(s, ((NimStringDesc*) &TMP1863));
if (!LOC3) goto LA4;
start = ((NI) 3);
}
goto LA1;
LA4: ;
{
start = ((NI) 0);
}
LA1: ;
ende = nsuFindCharSet(s, TMP1864, ((NI) 0));
{
if (!(((NI) 0) <= ende)) goto LA9;
result = copyStrLast(s, start, (NI)(ende - ((NI) 1)));
}
goto LA7;
LA9: ;
{
result = copyStr(s, start);
}
LA7: ;
return result;
}
示例5: N_NIMCALL
N_NIMCALL(NimStringDesc*, npocmdLineRest)(Optparser176011* p) {
NimStringDesc* result;
NimStringDesc* LOC1;
result = 0;
LOC1 = 0;
LOC1 = copyStrLast((*p).cmd, (*p).pos, (NI)(((*p).cmd ? (*p).cmd->Sup.len : 0) - ((NI) 1)));
result = nsuStrip(LOC1, NIM_TRUE, NIM_TRUE);
return result;
}
示例6: N_NIMCALL
N_NIMCALL(NimStringDesc*, npocmdLineRest)(TY189404* P_189913) {
NimStringDesc* Result_189914;
NimStringDesc* LOC1;
Result_189914 = 0;
LOC1 = 0;
LOC1 = copyStrLast((*P_189913).Cmd, (*P_189913).Pos, (NI64)((*P_189913).Cmd->Sup.len - 1));
Result_189914 = nsuStrip(LOC1, NIM_TRUE, NIM_TRUE);
return Result_189914;
}
示例7: N_NIMCALL
N_NIMCALL(void, addpackage_175137)(tstringtable123810* packages, NimStringDesc* p) {
NI x;
NimStringDesc* name;
NI TMP1418;
nimfr("addPackage", "babelcmd.nim")
nimln(47, "babelcmd.nim");
x = versionsplitpos_175014(p);
nimln(48, "babelcmd.nim");
nimln(48, "babelcmd.nim");
nimln(48, "babelcmd.nim");
TMP1418 = subInt(x, 1);
name = copyStrLast(p, 0, (NI32)(TMP1418));
nimln(49, "babelcmd.nim");
{
NimStringDesc* version;
NI TMP1419;
nimln(49, "babelcmd.nim");
nimln(49, "babelcmd.nim");
if (!(x < p->Sup.len)) goto LA3;
nimln(50, "babelcmd.nim");
nimln(50, "babelcmd.nim");
nimln(50, "babelcmd.nim");
TMP1419 = addInt(x, 1);
version = copyStr(p, (NI32)(TMP1419));
nimln(51, "babelcmd.nim");
{
NimStringDesc* LOC7;
NIM_BOOL LOC8;
nimln(51, "babelcmd.nim");
nimln(51, "babelcmd.nim");
LOC7 = 0;
LOC7 = nstGet(packages, name);
LOC8 = 0;
LOC8 = HEX3CHEX2E_175054(LOC7, version);
if (!LOC8) goto LA9;
nimln(52, "babelcmd.nim");
nstPut(packages, name, version);
}
LA9:
;
}
goto LA1;
LA3:
;
{
nimln(54, "babelcmd.nim");
nstPut(packages, name, ((NimStringDesc*) &TMP1417));
}
LA1:
;
popFrame();
}
示例8: N_INLINE
static N_INLINE(NI, parsewhile_97054)(NimStringDesc* s, NimStringDesc** token, TY99946 validchars, NI start) {
NI result;
NI i;
result = 0;
i = start;
{
while (1) {
if (!((validchars[((NU8)(s->data[i]))/8] &(1<<(((NU8)(s->data[i]))%8)))!=0)) goto LA2;
i += ((NI) 1);
} LA2: ;
}
result = (NI)(i - start);
unsureAsgnRef((void**) (&(*token)), copyStrLast(s, start, (NI)(i - ((NI) 1))));
return result;
}
示例9: N_NIMCALL
N_NIMCALL(NimStringDesc*, Removetrailingdirsep_46211)(NimStringDesc* Path_46213) {
NimStringDesc* Result_46214;
NIM_BOOL LOC2;
Result_46214 = 0;
LOC2 = (0 < Path_46213->Sup.len);
if (!(LOC2)) goto LA3;
LOC2 = ((NU8)(Path_46213->data[(NI64)(Path_46213->Sup.len - 1)]) == (NU8)(47));
LA3: ;
if (!LOC2) goto LA4;
Result_46214 = copyStrLast(Path_46213, 0, (NI64)(Path_46213->Sup.len - 2));
goto LA1;
LA4: ;
Result_46214 = copyString(Path_46213);
LA1: ;
return Result_46214;
}
示例10: N_NIMCALL
N_NIMCALL(NimStringDesc*, canondynlibname_137360)(NimStringDesc* s) {
NimStringDesc* result;
NI start;
NI ende;
nimfr("canonDynlibName", "options.nim")
result = 0;
nimln(356, "options.nim");
nimln(356, "options.nim");
{
NIM_BOOL LOC3;
nimln(356, "options.nim");
LOC3 = 0;
LOC3 = nsuStartsWith(s, ((NimStringDesc*) &TMP442));
if (!LOC3) goto LA4;
start = 3;
}
goto LA1;
LA4: ;
{
start = 0;
}
LA1: ;
nimln(357, "options.nim");
ende = nsuFindCharSet(s, TMP443, 0);
nimln(358, "options.nim");
{
NI TMP444;
nimln(358, "options.nim");
if (!(0 <= ende)) goto LA9;
nimln(359, "options.nim");
nimln(359, "options.nim");
nimln(359, "options.nim");
TMP444 = subInt(ende, 1);
result = copyStrLast(s, start, (NI32)(TMP444));
}
goto LA7;
LA9: ;
{
nimln(361, "options.nim");
nimln(361, "options.nim");
result = copyStr(s, start);
}
LA7: ;
popFrame();
return result;
}
示例11: N_NIMCALL
N_NIMCALL(NimStringDesc*, nosparentDir)(NimStringDesc* path) {
NimStringDesc* result;
NI sepPos;
result = (NimStringDesc*)0;
sepPos = parentDirPos_GvT9b2csQmLzVANEJ9bdAuNA_2(path);
{
if (!(((NI) 0) <= sepPos)) goto LA3_;
result = copyStrLast(path, ((NI) 0), (NI)(sepPos - ((NI) 1)));
}
goto LA1_;
LA3_: ;
{
result = copyString(((NimStringDesc*) &TM_jvWQYw9bcuYhftfPX2ynPeg_2));
}
LA1_: ;
return result;
}
示例12: N_NIMCALL
N_NIMCALL(NimStringDesc*, nosparentDir)(NimStringDesc* path) {
NimStringDesc* result;
NI seppos;
result = 0;
seppos = parentdirpos_118359(path);
{
if (!(((NI) 0) <= seppos)) goto LA3;
result = copyStrLast(path, ((NI) 0), (NI)(seppos - ((NI) 1)));
}
goto LA1;
LA3: ;
{
result = copyString(((NimStringDesc*) &TMP136));
}
LA1: ;
return result;
}
示例13: N_NIMCALL
N_NIMCALL(NimStringDesc*, npocmdLineRest)(toptparser416607* p) {
NimStringDesc* result;
NI TMP7031;
NimStringDesc* LOC1;
nimfr("cmdLineRest", "parseopt.nim")
result = 0;
nimln(128, "parseopt.nim");
nimln(128, "parseopt.nim");
nimln(128, "parseopt.nim");
nimln(128, "parseopt.nim");
nimln(128, "parseopt.nim");
TMP7031 = subInt((*p).Cmd->Sup.len, 1);
LOC1 = 0;
LOC1 = copyStrLast((*p).Cmd, (*p).Pos, (NI32)(TMP7031));
result = nsuStrip(LOC1, NIM_TRUE, NIM_TRUE);
popFrame();
return result;
}N_NOINLINE(void, pureparseoptInit)(void) {
示例14: N_NIMCALL
N_NIMCALL(NimStringDesc*, canondynlibname_114635)(NimStringDesc* s) {
NimStringDesc* result;
NI start;
NI ende;
nimfr("canonDynlibName", "options.nim")
result = 0;
nimln(310, "options.nim");
nimln(310, "options.nim");
{
NIM_BOOL LOC3;
nimln(310, "options.nim");
LOC3 = 0;
LOC3 = nsuStartsWith(s, ((NimStringDesc*) &TMP339));
if (!LOC3) goto LA4;
start = 3;
} goto LA1;
LA4: ;
{
start = 0;
} LA1: ;
nimln(311, "options.nim");
ende = nsuFindCharSet(s, TMP361, 0);
nimln(312, "options.nim");
{
NI TMP362;
nimln(702, "system.nim");
if (!(0 <= ende)) goto LA9;
nimln(313, "options.nim");
nimln(313, "options.nim");
nimln(313, "options.nim");
TMP362 = subInt(ende, 1);
result = copyStrLast(s, start, (NI32)(TMP362));
} goto LA7;
LA9: ;
{
nimln(315, "options.nim");
nimln(315, "options.nim");
result = copyStr(s, start);
} LA7: ;
popFrame();
return result;
}
示例15: N_NIMCALL
N_NIMCALL(NimStringDesc*, mac_319009)(NimStringDesc* val, NI sec) {
NimStringDesc* result;
NimStringDesc* LOC1;
NimStringDesc* LOC2;
NimStringDesc* LOC3;
NimStringDesc* LOC4;
NimStringDesc* LOC5;
result = 0;
LOC1 = 0;
LOC2 = 0;
LOC2 = nimIntToStr(sec);
LOC3 = 0;
LOC3 = HEX3FHEX3F_319015(val, ((NimStringDesc*) &TMP1459));
LOC1 = rawNewString(Key_264379->Sup.len + LOC2->Sup.len + LOC3->Sup.len + 0);
appendString(LOC1, Key_264379);
appendString(LOC1, LOC2);
appendString(LOC1, LOC3);
LOC4 = 0;
LOC4 = sha3_265041(LOC1);
LOC5 = 0;
LOC5 = copyStrLast(LOC4, ((NI) 0), ((NI) 11));
result = hex_240200(LOC5);
return result;
}