Commit eabd39a3 authored by claes's avatar claes

cdh_SuppressSuperAll added

parent 30659a62
/** /**
* Proview $Id: co_cdh.c,v 1.21 2007-04-25 13:39:21 claes Exp $ * Proview $Id: co_cdh.c,v 1.22 2008-05-29 15:02:24 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -2652,6 +2652,19 @@ void cdh_SuppressSuper( char *out, char *in) ...@@ -2652,6 +2652,19 @@ void cdh_SuppressSuper( char *out, char *in)
strcpy( out, s); strcpy( out, s);
} }
void cdh_SuppressSuperAll( char *out, char *in)
{
char *s, *t;
for ( s = in, t = out; *s; s++,t++) {
if ( strncmp( s, "Super.", 6) == 0)
s += 6;
else
*t = *s;
}
*t = 0;
}
int cdh_TypeToMaxStrSize( pwr_eType type, int attr_size, int attr_elements) int cdh_TypeToMaxStrSize( pwr_eType type, int attr_size, int attr_elements)
{ {
int size; int size;
......
/** /**
* Proview $Id: co_cdh.h,v 1.27 2007-12-21 13:31:57 claes Exp $ * Proview $Id: co_cdh.h,v 1.28 2008-05-29 15:02:24 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -1011,6 +1011,8 @@ pwr_sAttrRef cdh_ArefAdd( pwr_sAttrRef *arp1, pwr_sAttrRef *arp2); ...@@ -1011,6 +1011,8 @@ pwr_sAttrRef cdh_ArefAdd( pwr_sAttrRef *arp1, pwr_sAttrRef *arp2);
void cdh_SuppressSuper( char *out, char *in); void cdh_SuppressSuper( char *out, char *in);
void cdh_SuppressSuperAll( char *out, char *in);
int cdh_TypeToMaxStrSize( pwr_eType type, int attr_size, int attr_elements); int cdh_TypeToMaxStrSize( pwr_eType type, int attr_size, int attr_elements);
/*@}*/ /*@}*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment